示例工程 13-project-file-explorer
13-project-file-explorer/app/.tsc/main/services/workspace-service.d.ts
import { type Entry, type FileRead, type SaveResult } from "../../shared/ipc";
type WorkspaceService = {
ensure(): Promise<void>;
tree(): Promise<Entry[]>;
read(rel: string): Promise<FileRead>;
save(rel: string, content: string): Promise<SaveResult>;
reset(): Promise<void>;
};
export declare function createWorkspaceService(options: {
root: string;
}): WorkspaceService;
export {};
//# sourceMappingURL=workspace-service.d.ts.map