import type { Accessor } from '../../accessor/base.ts'; import type { IndexEntry } from '../../cache/index/config.ts'; import type { IndexCacheStore } from '../../cache/index/store.ts'; import { PathSpec } from '../../types.ts'; export type ReaddirFn = (accessor: A, pathSpec: PathSpec, index?: IndexCacheStore) => Promise; /** * Throw ENOENT unless the path appears in its parent's listing. * * Every path shape a fixed hierarchy serves is recognizable from the text * alone, but a recognizable shape is not evidence the entry exists. The * parent listing is index-cached, so validating costs one listing per * directory rather than one API call per stat. */ export declare function assertListed(readdir: ReaddirFn, accessor: A, path: PathSpec, index?: IndexCacheStore): Promise; /** Return the size the parent listing recorded for this path. */ export declare function listedSize(index: IndexCacheStore | undefined, path: PathSpec): Promise; /** * Resolve the path's index entry, listing its parent when cold. * * Id-addressed backends can only turn a path into an id through the index, * so the entry is the proof of existence AND the id source; this wraps * `entryOrWarm` with the parent-readdir warm every such backend used to * spell by hand. */ export declare function resolveEntry(readdir: ReaddirFn, accessor: A, path: PathSpec, index?: IndexCacheStore): Promise; //# sourceMappingURL=probe.d.ts.map