import type { LinkView, MountView } from '../../../../ops/types.ts'; import type { PathSpec } from '../../../../types.ts'; import { type DirProbe, type StatFn, type WalkFn } from '../archive/walk.ts'; import type { CreateResult } from './types.ts'; export type { DirProbe, StatFn, WalkFn }; export interface CreateDeps { archive: PathSpec; exclude: string | null; dereference: boolean; stat: StatFn; walk: WalkFn; isDir: DirProbe; directories?: readonly PathSpec[]; links?: LinkView | null; mounts?: MountView | null; } export declare function stripPrefix(spelled: string): [string, string]; /** * Decide every member of a new archive, before writing any of it. * * One pass per operand, in the order they were typed, each contributing * itself and then its subtree. GNU walks a directory operand rather than * refusing it, and mirage now does too; the one deliberate divergence is * ordering, since GNU emits siblings in readdir order (filesystem-dependent) * and this sorts them, the same choice `du` already documents. */ export declare function planCreate(paths: readonly PathSpec[], deps: CreateDeps): Promise; //# sourceMappingURL=create.d.ts.map