openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
23 lines • 1.66 kB
TypeScript
import { r as LegacyNonBlockingReadOption, t as CompatibleFsSafeRoot } from "./fs-safe-compat-CPHV0ZYv.js";
import { appendRegularFile, canonicalPathFromExistingAncestor, findExistingAncestor, pathExists, pathExistsSync, readRegularFile, readRegularFileSync, resolveAbsolutePathForRead, resolveAbsolutePathForWrite, resolveLocalPathFromRootsSync, statRegularFile, statRegularFileSync, withTimeout } from "@openclaw/fs-safe/advanced";
import { FsSafeError } from "@openclaw/fs-safe/errors";
import { RootDefaults, openLocalFileSafely } from "@openclaw/fs-safe/root";
import "@openclaw/fs-safe/path";
import "@openclaw/fs-safe/secure-file";
import "@openclaw/fs-safe/walk";
//#region src/infra/fs-safe.d.ts
type Root$1 = Omit<CompatibleFsSafeRoot, "walk">;
declare function root(rootDir: string, defaults?: RootDefaults & LegacyNonBlockingReadOption): Promise<Root$1>;
type ExternalFileWriteOptions = {
rootDir: string;
path: string;
write: (tempPath: string) => Promise<void>;
fallbackFileName?: string;
tempPrefix?: string;
};
type ExternalFileWriteResult = {
path: string;
};
declare function writeExternalFileWithinRoot(options: ExternalFileWriteOptions): Promise<ExternalFileWriteResult>;
//#endregion
export { writeExternalFileWithinRoot as _, openLocalFileSafely as a, readRegularFile as c, resolveAbsolutePathForWrite as d, resolveLocalPathFromRootsSync as f, withTimeout as g, statRegularFileSync as h, findExistingAncestor as i, readRegularFileSync as l, statRegularFile as m, appendRegularFile as n, pathExists as o, root as p, canonicalPathFromExistingAncestor as r, pathExistsSync as s, FsSafeError as t, resolveAbsolutePathForRead as u };