export declare const MAX_FILE_BYTES: number; export declare const MEMORY_WARN_BYTES: number; export interface CheckedFile { path: string; name: string; size: number; } export declare class SafetyError extends Error { constructor(message: string); } export declare function assertWithinRoot(root: string, candidate: string): string; export declare function isSensitivePath(p: string): boolean; export declare function blockedExtension(p: string): string | null; /** * Validates explicit paths (files or directories) and expands directories. * Explicitly-passed sensitive/blocked files are hard errors; sensitive files * discovered inside an expanded directory are skipped and reported instead. */ export declare function collectFiles(root: string, inputPaths: string[]): Promise<{ files: CheckedFile[]; skipped: string[]; }>; /** Prevents path traversal from hostile filenames when saving received files. */ export declare function safeSaveName(fileName: string): string;