import type { BackendExplanation, FileDialogHandle, FileEntry, FilePermissions, FileStat, FileSystemBackend, FileSystemPathKind, FileSystemUsage, FileWalkOptions, FileWatchEvent } from '@flighthq/types/contract'; export declare function appendTextFile(path: string, data: string): Promise; export declare function canAccessFile(path: string, mode: 'readable' | 'writable' | 'executable'): Promise; export declare function copyFile(from: string, to: string): Promise; export declare function createFileSymlink(target: string, linkPath: string): Promise; export declare function createWebFileSystemBackend(): FileSystemBackend; export declare function directoryExists(path: string): Promise; export declare function explainFileSystemBackend(): BackendExplanation; export declare function fileExists(path: string): Promise; export declare function findFiles(rootPath: string, pattern: string): Promise; export declare function getFileBaseName(path: string): string; export declare function getFileDirectoryName(path: string): string; export declare function getFileExtensionName(path: string): string; export declare function getFilePermissions(path: string): Promise; export declare function getFileRealPath(path: string): Promise; export declare function getFileSystemBackend(): FileSystemBackend; export declare function getFileSystemPath(kind: FileSystemPathKind): string; export declare function getFileSystemUsage(): Promise; export declare function installFileSystemHostBackend(backend: FileSystemBackend): void; export declare function isAbsoluteFilePath(path: string): boolean; export declare function joinFilePath(...segments: readonly string[]): string; export declare function makeDirectory(path: string): Promise; export declare function normalizeFilePath(path: string): string; export declare function observeFileSystemHostResult(operation: string, succeeded: boolean): void; export declare function openFileReadStream(path: string): Promise | null>; export declare function openFileWriteStream(path: string): Promise | null>; export declare function readBinaryFile(path: string): Promise; export declare function readBinaryFileRange(path: string, offset: number, length: number): Promise; export declare function readDialogHandleBinaryFile(handle: Readonly): Promise; export declare function readDialogHandleTextFile(handle: Readonly): Promise; export declare function readDirectory(path: string): Promise; export declare function readDirectoryRecursive(path: string, options?: Readonly): Promise; export declare function readFileSymlink(path: string): Promise; export declare function readTextFile(path: string): Promise; export declare function removeDirectory(path: string, recursive?: boolean): Promise; export declare function removeFile(path: string): Promise; export declare function renameFile(from: string, to: string): Promise; export declare function resetFileSystemBackendForTest(): void; export declare function setFilePermissions(path: string, permissions: Readonly): Promise; export declare function setFileSystemBackend(backend: FileSystemBackend | null): void; export declare function statFile(path: string): Promise; export declare function watchPath(path: string, listener: (event: Readonly) => void): () => void; export declare function writeBinaryFile(path: string, data: Readonly): Promise; export declare function writeBinaryFileChunks(path: string, chunks: AsyncIterable>): Promise; export declare function writeDialogHandleBinaryFile(handle: Readonly, data: Readonly): Promise; export declare function writeDialogHandleTextFile(handle: Readonly, data: string): Promise; export declare function writeFileAtomic(path: string, data: Readonly | string): Promise; export declare function writeTextFile(path: string, data: string): Promise; //# sourceMappingURL=filesystem.d.ts.map