/**
 * The entry point that also takes file paths.
 *
 * The examples for URLs and bytes are in the browser entry's docs, under the same names.
 */
import type { Container, Listing } from "../container/contract.js";
import type { Target } from "../container/target.js";
import type { Abortable } from "../vocabulary.js";
/**
 * Peeks at a container's track list.
 *
 * It reads only the header, answers every type of track in one array,
 * and throws a refusal as a `RefusalError`, as `openContainer` does.
 *
 * @example
 * const { tracks, info } = await peekTracks(path);
 */
export declare function peekTracks(target: Target, options?: Abortable): Promise<Listing>;
/**
 * Opens a container for its tracks' frames, and keeps the target open until `close`.
 *
 * It reads what `peekTracks` reads, and throws a refusal at the open or at a read as a `RefusalError`.
 *
 * @example
 * await using container = await openContainer(path);
 * const subtitles = container.tracks.filter((track) => track.type === "subtitle");
 * for await (const frame of container.frames(subtitles)) console.log(frame.trackIndex, frame.data.length);
 */
export declare function openContainer(target: Target, options?: Abortable): Promise<Container>;
