/** Revalidate at I/O time; never truncate a file before checking the opened inode. */ export declare function checkedFilePath(workspaceRoot: string, path: string, operation: 'read' | 'write' | 'delete', allowOutsideWorkspace?: boolean): string; export declare function readWorkspaceFile(workspace: string, path: string, maxBytes?: number, allowOutsideWorkspace?: boolean): Buffer; /** Use the same checked inode as synchronous access, yielding between bounded reads. */ export declare function readWorkspaceFileAsync(workspace: string, path: string, signal?: AbortSignal, maxBytes?: number, allowOutsideWorkspace?: boolean): Promise; export declare function writeWorkspaceFile(workspace: string, path: string, content: string | Buffer, allowOutsideWorkspace?: boolean): void; export declare function deleteWorkspaceFile(workspace: string, path: string, allowOutsideWorkspace?: boolean): void; /** Refuse publication of directory trees containing protected or escaping entries. */ export declare function assertWorkspaceTreeReadable(workspace: string, path: string): void;