export declare class ValidationError extends Error { constructor(message: string); } /** * Validate a port number is within safe range and is a valid integer. */ export declare function validatePort(port: unknown): number; /** * Validate a libp2p multiaddress format. * Must contain /ip4/ or /ip6/ and /p2p/ components. */ export declare function validateMultiaddr(addr: string): string; /** * Validate an IPv4 address. */ export declare function validateIPv4(ip: string): string; /** * Validate a file path doesn't contain dangerous characters. * Prevents path traversal and command injection via paths. * * Note: Backslashes are allowed for Windows path compatibility. * Since we use execFileSync (no shell), backslashes are safe. */ export declare function validatePath(filePath: string): string; /** * Validate a CID (Content Identifier) format. * Supports both CIDv0 (Qm...) and CIDv1 (bafy...) formats. */ export declare function validateCID(cid: string): string; /** * Sanitize a string for display (strip control characters). */ export declare function sanitize(input: string): string; //# sourceMappingURL=validator.d.ts.map