import type { DirEntry, FileInfo, FileSystemAdapter, FileWatcher, WatchOptions } from "../../base.js"; import { type NodeFileSystemCapabilityOptions } from "../shared/node-filesystem-adapter.js"; interface DenoCreateFile { write(content: Uint8Array): Promise; close(): void; } interface DenoCreateRuntime { open(path: string, options: { write: true; createNew: true; }): Promise; } interface DenoFileSystemCapabilityOptions extends NodeFileSystemCapabilityOptions { /** Test seam for Deno createNew availability and partial write failures. */ readonly denoCreateRuntime?: DenoCreateRuntime | null; } export declare class DenoFileSystemAdapter implements FileSystemAdapter { constructor(options?: DenoFileSystemCapabilityOptions); readFile(path: string): Promise; readFileBytes(path: string): Promise; readFileBytesBounded(path: string, byteLimit: number): Promise; readFileBytesWithinLimit(path: string, byteLimit: number): Promise; writeFile(path: string, content: string): Promise; writeFileBytes(path: string, content: Uint8Array): Promise; rename(from: string, to: string): Promise; exists(path: string): Promise; readDir(path: string): AsyncIterable; stat(path: string): Promise; lstat(path: string): Promise; realPath(path: string): Promise; mkdir(path: string, options?: { recursive?: boolean; }): Promise; remove(path: string, options?: { recursive?: boolean; }): Promise; makeTempDir(prefix: string): Promise; watch(paths: string | string[], options?: WatchOptions): FileWatcher; } export interface DenoFileSystemAdapter { readFileSnapshotWithinLimit?(path: string, containmentRoot: string, byteLimit: number): Promise; createFileBytesExclusive?(path: string, content: Uint8Array): Promise; } export {}; //# sourceMappingURL=filesystem-adapter.d.ts.map