export interface PathPolicy { allowedPrefixes: string[]; maxSizeBytes?: number; } export type PathCheckResult = { ok: true; absolutePath: string; size: number; } | { ok: false; error: string; }; /** * Validate a path against a whitelist policy. * - Resolves to absolute path * - Resolves symlinks via realpathSync (critical: prevents symlink escape) * - Checks resolved path is under an allowed prefix * - Verifies file exists and is a regular file * - Optionally enforces max size */ export declare function checkPath(input: string, policy: PathPolicy): PathCheckResult; //# sourceMappingURL=path.d.ts.map