export interface MockFsState { accessiblePaths: Set; files: Map; removedPaths: Set; writtenFiles: Map; } export declare class MockFsBuilder { private state; /** * Add a file to the mock filesystem */ addFile(path: string, content: Buffer | string): this; /** * Build fs/promises mock */ build(): { access: import("vitest").Mock<(path: string) => Promise>; mkdir: import("vitest").Mock<() => Promise>; readFile: import("vitest").Mock<(path: string) => Promise>>; rm: import("vitest").Mock<(path: string) => Promise>; unlink: import("vitest").Mock<(path: string) => Promise>; writeFile: import("vitest").Mock<(path: string, content: Buffer | string) => Promise>; }; /** * Get paths that were removed */ getRemovedPaths(): Set; /** * Get the current state */ getState(): MockFsState; /** * Get files that were written */ getWrittenFiles(): Map; /** * Make a path accessible (exists check will pass) */ makeAccessible(path: string): this; } /** * Create a new mock fs builder */ export declare function createMockFs(): MockFsBuilder;