Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

1.0 KB
Raw Blame
import type { FileHandle } from "node:fs/promises";
export type FsSafeTestHooks = {
    afterPreOpenLstat?: (filePath: string) => Promise<void> | void;
    beforeOpen?: (filePath: string, flags: number) => Promise<void> | void;
    afterOpen?: (filePath: string, handle: FileHandle) => Promise<void> | void;
    beforeArchiveOutputMutation?: (operation: "mkdir" | "chmod", targetPath: string) => Promise<void> | void;
    beforeFileStorePruneDescend?: (dirPath: string) => Promise<void> | void;
    beforeFileStoreSyncPrivateWrite?: (filePath: string) => void;
    beforeRootFallbackMutation?: (operation: "mkdir" | "move" | "remove", targetPath: string) => Promise<void> | void;
    beforeSiblingTempWrite?: (tempPath: string) => Promise<void> | void;
    beforeTrashMove?: (targetPath: string, destPath: string) => void;
};
export declare function getFsSafeTestHooks(): FsSafeTestHooks | undefined;
export declare function __setFsSafeTestHooksForTest(hooks?: FsSafeTestHooks): void;
//# sourceMappingURL=test-hooks.d.ts.map