import { n as FileStoreSync, t as FileStore } from "./file-store-CHqXrIsw.js"; //#region node_modules/@kodelyth/fs-safe/dist/private-temp-workspace.d.ts type TempWorkspaceOptions = { rootDir: string; prefix: string; dirMode?: number; mode?: number; }; type TempWorkspace = { dir: string; store: FileStore; path(fileName: string): string; write(fileName: string, data: string | Uint8Array): Promise; writeText(fileName: string, data: string): Promise; writeJson(fileName: string, data: unknown, options?: { trailingNewline?: boolean; }): Promise; copyIn(fileName: string, sourcePath: string): Promise; read(fileName: string): Promise; cleanup(): Promise; [Symbol.asyncDispose](): Promise; }; type TempWorkspaceSync = { dir: string; store: FileStoreSync; path(fileName: string): string; write(fileName: string, data: string | Uint8Array): string; writeText(fileName: string, data: string): string; writeJson(fileName: string, data: unknown, options?: { trailingNewline?: boolean; }): string; read(fileName: string): Buffer; cleanup(): void; [Symbol.dispose](): void; }; declare function tempWorkspace(options: TempWorkspaceOptions): Promise; declare function withTempWorkspace(options: TempWorkspaceOptions, run: (workspace: TempWorkspace) => Promise): Promise; declare function tempWorkspaceSync(options: TempWorkspaceOptions): TempWorkspaceSync; declare function withTempWorkspaceSync(options: TempWorkspaceOptions, run: (workspace: TempWorkspaceSync) => T): T; //#endregion export { tempWorkspaceSync as a, tempWorkspace as i, TempWorkspaceOptions as n, withTempWorkspace as o, TempWorkspaceSync as r, withTempWorkspaceSync as s, TempWorkspace as t };