export declare const WORKSPACE_PATH_MAX_BYTES: number; export declare const WORKSPACE_STREAM_CHUNK_BYTES: number; /** A capacity floor, not a total filename budget. Leave room for the host. */ export declare function assertWorkspaceManifestDiskSpace(directory: string, requiredBytes?: number): number; export interface PathManifest { kind: "path_manifest"; version: 1; filePath: string; category: string; count: number; } export type WorkspacePaths = readonly string[] | PathManifest; export declare function assertWorkspaceRelativePath(value: string): void; export declare function isPathManifest(value: WorkspacePaths): value is PathManifest; /** One private database, sealed before it is published. Consumers open read-only. */ export declare class WorkspaceManifestWriter { readonly filePath: string; private readonly db; private readonly insert; private closed; private bytesSinceDiskCheck; constructor(filePath: string); add(category: string, relative: string, value?: string): void; batch(work: () => void): void; paths(category: string): PathManifest; close(commit?: boolean): void; } export declare class WorkspaceManifestMap { readonly manifest: PathManifest; private readonly parse; private db; private lookup; constructor(manifest: PathManifest, parse: (value: string) => T); get size(): number; get(relative: string): T | undefined; has(relative: string): boolean; entries(reverse?: boolean): Generator<[string, T]>; [Symbol.iterator](): Generator<[string, T]>; close(): void; } export declare function createWorkspaceManifest(prefix?: string): Promise; export declare function readManifestRecords(manifest: PathManifest, reverse?: boolean): Generator<[string, string]>; export declare function workspacePaths(paths: WorkspacePaths): Generator; /** Exact paths and their descendants; Git ignore output is literal, not a glob. */ export declare function workspacePathMatcher(paths?: WorkspacePaths): { matches(relative: string): boolean; close(): void; }; /** Incremental NUL parser: one bounded record, strict UTF-8, no partial success. */ export declare class WorkspaceNulParser { private readonly record; private readonly pending; private length; private readonly decoder; constructor(record: (relative: string) => void); write(chunk: Buffer): void; finish(): void; } export declare function writeWorkspacePaths(paths: WorkspacePaths, target: string): Promise; export declare function manifestFileSha256(filePath: string): Promise; //# sourceMappingURL=workspace-manifest.d.ts.map