export declare class DeepReviewValidationError extends Error { readonly code: string; constructor(code: string, message: string); } export declare function isRecord(value: unknown): value is Record; export declare function assertNoExtraKeys(record: Record, allowedKeys: ReadonlySet, context: string): void; export declare function requireString(value: unknown, field: string, context: string, options?: { maxLength?: number; pattern?: RegExp; }): string; export declare function requireNumber(value: unknown, field: string, context: string, options?: { integer?: boolean; min?: number; max?: number; }): number; export declare function requireEnum(value: unknown, field: string, context: string, allowed: ReadonlySet): T; export declare function requireArray(value: unknown, field: string, context: string, parseItem: (item: unknown, index: number) => T, options?: { maxLength?: number; }): readonly T[]; export declare function optionalField(record: Record, key: string, parse: (value: unknown) => T): T | undefined; export declare const GIT_SHA_PATTERN: RegExp; export declare const REPO_RELATIVE_PATH_PATTERN: RegExp; export declare function isValidRepoRelativePath(pathValue: string): boolean; export declare function requireGitSha(value: unknown, field: string, context: string): string; export declare function requireRepoRelativePath(value: unknown, field: string, context: string): string; //# sourceMappingURL=validate.d.ts.map