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。

814 B
Raw Blame
import fs from "node:fs";
export type PinnedOpenSyncFailureReason = "path" | "validation" | "io";
export type PinnedOpenSyncResult = {
    ok: true;
    path: string;
    fd: number;
    stat: fs.Stats;
} | {
    ok: false;
    reason: PinnedOpenSyncFailureReason;
    error?: unknown;
};
export type PinnedOpenSyncAllowedType = "file" | "directory";
export type PinnedOpenSyncFs = Pick<typeof fs, "constants" | "lstatSync" | "realpathSync" | "openSync" | "fstatSync" | "closeSync">;
export declare function openPinnedFileSync(params: {
    filePath: string;
    resolvedPath?: string;
    rejectPathSymlink?: boolean;
    rejectHardlinks?: boolean;
    maxBytes?: number;
    allowedType?: PinnedOpenSyncAllowedType;
    ioFs?: PinnedOpenSyncFs;
}): PinnedOpenSyncResult;
//# sourceMappingURL=pinned-open.d.ts.map