import type { BigIntStats } from "node:fs"; export interface PrivateCapabilityTargetReview { canonicalPath: string; directChildOfConfiguredRoot: true; exclusiveCreate: true; fileMode: "0600"; rootCanonical: true; rootOwnerMatchesProcess: true; rootPrivate: true; targetAbsent: true; } export interface PrivateCapabilityFileReservation { readonly review: PrivateCapabilityTargetReview; discard(): Promise; write(content: string): Promise; } export interface PrivateCapabilityFileHandle { chmod(mode: number): Promise; close(): Promise; stat(options: { bigint: true; }): Promise; sync(): Promise; writeFile(data: string, encoding: BufferEncoding): Promise; } export interface PrivateCapabilityFileSystem { lstat(path: string, options: { bigint: true; }): Promise; open(path: string, flags: number, mode: number): Promise; realpath(path: string): Promise; unlink(path: string): Promise; } export declare const DEFAULT_PRIVATE_CAPABILITY_FILE_SYSTEM: PrivateCapabilityFileSystem; export declare class PrivateCapabilityFileError extends Error { name: string; } export declare function reviewPrivateCapabilityTarget(file: string, roots: readonly string[], fileSystem?: PrivateCapabilityFileSystem): Promise; export declare function reservePrivateCapabilityFile(file: string, roots: readonly string[], fileSystem?: PrivateCapabilityFileSystem): Promise; //# sourceMappingURL=private-capability-file.d.ts.map