/** * NodePAL — Node.js implementation of PlatformAbstractionLayer. * Uses node:fs/promises and node:path. * @module */ import type { FileStats, ListFilesOptions, Platform, PlatformAbstractionLayer } from "./pal.interface.js"; /** * Production Node.js PAL implementation. * * @example * ```typescript * const pal = new NodePAL(); * const content = await pal.readFile('/some/file.txt'); * ``` */ export declare class NodePAL implements PlatformAbstractionLayer { readFile(path: string): Promise; readFileSync(path: string): string; writeFile(path: string, content: string): Promise; writeFileSync(path: string, content: string): void; exists(path: string): Promise; existsSync(path: string): boolean; deleteFile(path: string, options?: { force?: boolean; }): Promise; copyFile(src: string, dest: string, options?: { overwrite?: boolean; }): Promise; stat(path: string): Promise; listFiles(dir: string, options?: ListFilesOptions): Promise; createDir(path: string): Promise; removeDir(path: string, options?: { recursive?: boolean; force?: boolean; }): Promise; resolvePath(...segments: string[]): string; joinPath(...segments: string[]): string; dirname(path: string): string; basename(path: string, ext?: string): string; extname(path: string): string; isAbsolute(path: string): boolean; relativePath(from: string, to: string): string; getCwd(): string; getHomeDir(): string; getEnv(name: string): string | undefined; getPlatform(): Platform; } /** * Default NodePAL instance. */ export declare const nodePal: NodePAL; //# sourceMappingURL=node-pal.d.ts.map