/** * Platform Abstraction Layer module. * Exports PAL interface, NodePAL, MockPAL, and the runtime singleton. * @module */ export type { MockPALOptions } from "./mock-pal.js"; export { MockPAL } from "./mock-pal.js"; export { NodePAL, nodePal } from "./node-pal.js"; export type { FileStats, ListFilesOptions, Platform, PlatformAbstractionLayer, } from "./pal.interface.js"; import type { PlatformAbstractionLayer } from "./pal.interface.js"; /** * Get the current PAL instance. */ export declare function getPal(): PlatformAbstractionLayer; /** * Replace the PAL instance (use in tests). * * @example * ```typescript * import { setPal, MockPAL } from './platform/index.js'; * * beforeEach(() => { * const mock = new MockPAL(); * mock.setFile('/project/README.md', '# Test'); * setPal(mock); * }); * ``` */ export declare function setPal(pal: PlatformAbstractionLayer): void; /** * Shortcut to access the current PAL instance. * Use when importing pal directly is more ergonomic. */ export declare const pal: PlatformAbstractionLayer; //# sourceMappingURL=index.d.ts.map