export declare const FILESYSTEM_WRITE_TOKEN: unique symbol; /** Filesystem capability provider interface */ export interface FilesystemProvider { readonly name: string; readonly version: string; readonly root: string; readFile(path: string): Promise; writeFile(path: string, content: string): Promise; listDirectory(path: string): Promise; pathExists(path: string): Promise; isDirectory(path: string): Promise; ensureDirectory(path: string): Promise; deleteFile(path: string): Promise; } /** POSIX filesystem provider using Node.js fs/promises */ export declare class PosixFilesystemProvider implements FilesystemProvider { readonly name = "posix-filesystem"; readonly version = "1.0.0"; readonly root: string; private writeToken; constructor(root: string, writeToken?: symbol); private resolve; private ensureAuthorized; readFile(path: string): Promise; writeFile(path: string, content: string): Promise; listDirectory(path: string): Promise; pathExists(path: string): Promise; isDirectory(path: string): Promise; ensureDirectory(path: string): Promise; deleteFile(path: string): Promise; } /** In-memory filesystem provider for testing */ export declare class InMemoryFilesystemProvider implements FilesystemProvider { readonly name = "in-memory-filesystem"; readonly version = "1.0.0"; readonly root = "/"; private files; private directories; private writeToken; constructor(initialFiles?: Record, writeToken?: symbol); private normalize; private ensureAuthorized; readFile(path: string): Promise; writeFile(path: string, content: string): Promise; listDirectory(path: string): Promise; pathExists(path: string): Promise; isDirectory(path: string): Promise; ensureDirectory(path: string): Promise; deleteFile(path: string): Promise; } export declare function createPosixFilesystemProvider(root: string, writeToken?: symbol): FilesystemProvider; export declare function createInMemoryFilesystemProvider(initialFiles?: Record, writeToken?: symbol): FilesystemProvider;