import { type ToolResponse } from './types.js'; export type PathPolicyOutcome = { ok: true; normalizedPath: string; resolvedPath: string; allowedRoots: string[]; } | { ok: false; response: ToolResponse; }; export declare function canonicalizePath(inputPath: string): Promise; /** * True when two paths resolve to the same filesystem location. Canonicalizes both via realpath (with a * lexical fallback for paths that do not exist yet) so a symlink can't disguise a clobber of an input * document behind a different-looking output path. Shared source-clobber guard for the write tools * (issue #313); folded out of the export-local guard so all write tools enforce it identically. */ export declare function resolvesToSamePath(a: string, b: string): Promise; export declare function getPlatformTempDefaults(platform?: NodeJS.Platform): string[]; export declare function enforceReadPathPolicy(inputPath: string): Promise; export declare function enforceWritePathPolicy(inputPath: string): Promise; //# sourceMappingURL=path_policy.d.ts.map