export interface StateFileSystem { mkdir(path: string, options: { recursive: true; }): Promise; readFile(path: string, encoding: BufferEncoding): Promise; writeFile(path: string, data: string, options?: BufferEncoding | { encoding?: BufferEncoding; flag?: string; mode?: number; }): Promise; rename(oldPath: string, newPath: string): Promise; readdir(path: string): Promise; stat(path: string): Promise<{ isFile(): boolean; mtimeMs: number; }>; lstat?(path: string): Promise<{ isSymbolicLink(): boolean; }>; unlink(path: string): Promise; } export declare const defaultStateFs: StateFileSystem; export declare function isNotFoundError(error: unknown): boolean; export declare function assertPathHasNoSymbolicLinks(fs: StateFileSystem, targetPath: string, message: string): Promise;