/** * CLI input validation helpers. * * Pure functions that validate user-provided CLI flags and exit with a * descriptive error when the input is invalid. Extracted from cli.ts so * they can be unit-tested independently. */ export declare const IDENTIFIER_RE: RegExp; export declare const VALID_AUTH_TYPES: readonly ["bearer", "header", "basic", "query"]; export declare const VALID_BODY_INSPECTION_MODES: readonly ["off", "warn", "block"]; export declare const VALID_POLICY_MODES: readonly ["enforce", "dry-run", "off"]; export declare const VALID_LOG_LEVELS: readonly ["debug", "info", "warn", "error"]; export declare const VALID_MCP_TRANSPORTS: readonly ["stdio", "streamable-http"]; /** Validate an identifier (name, service, etc.) used as a DB key or URL path segment. */ export declare function validateIdentifier(value: string, fieldName: string): void; /** Validate a value is one of the allowed enum values. */ export declare function validateEnum(value: string, allowed: readonly T[], fieldName: string): T; /** Validate a port number (1–65535). */ export declare function validatePort(value: number, fieldName: string): void; /** Validate a positive integer. */ export declare function validatePositiveInt(value: number, fieldName: string): void; /** Validate a non-negative float. */ export declare function validateNonNegativeFloat(value: number, fieldName: string): void; /** Validate a rate limit string (e.g. 100/min) early, before storing. */ export declare function validateRateLimit(value: string): void; /** Validate a comma-separated domain list. */ export declare function validateDomains(raw: string): string[]; /** Validate an ISO date string. */ export declare function validateIsoDate(value: string, fieldName: string): void; /** * Convert a UTC timestamp from SQLite (e.g. "2026-03-09 00:31:38") to * the user's local time string. SQLite's datetime('now') stores UTC but * omits the 'Z' suffix, so we append it before parsing so JavaScript's * Date constructor treats it as UTC rather than local. */ export declare function localTime(utcTimestamp: string): string; //# sourceMappingURL=validation.d.ts.map