import { type FileStat, PathSpec } from '../../../../types.ts'; export type StatDoor = (p: PathSpec) => Promise; export type MkdirDoor = (p: PathSpec, parents?: boolean) => Promise; /** * Where extraction lands: the explicit operand, else the cwd. * * The explicit operand is tar's last -C or unzip's -d; both arrive as * resolved virtual-path strings in the TypeScript flag bag, and the cwd * is virtual too, so no per-door-space split exists here the way it * does in Python (whose accessor doors speak mount-relative paths). */ export declare function extractDest(explicit: string | null, cwd: string): string; export declare function flatPathSpec(virtual: string): PathSpec; /** * Create one directory chain top-down, skipping what exists. * * The dispatch mkdir op is single-level on most backends (the * `mkdirParents` knob is a per-backend exception), so extraction walks * the chain itself the way relay cp does: probe, then create only what * is missing, memoized per run so an archive of many files stats each * ancestor once. */ export declare function ensureDir(dirPath: string, toSpec: (virtual: string) => PathSpec, mkdir: MkdirDoor, stat: StatDoor, made: Set): Promise; //# sourceMappingURL=extract.d.ts.map