export interface RuleMatch { [key: string]: | string | number | boolean | { eq?: string | number | boolean; neq?: string | number | boolean; gt?: number; gte?: number; lt?: number; lte?: number; in?: Array; contains?: string | string[]; startsWith?: string | string[]; endsWith?: string | string[]; }; } export interface Rule { match: RuleMatch; value: T; } export declare function matchesRule(match: RuleMatch | null | undefined, context: Record): boolean; export declare function selectByRules( rules: Array>, context: Record ): T; export interface RuleGroupStructureSpec { contextKeys: readonly string[]; isValue(value: unknown): boolean; valueType: string; catchAll: boolean; } export declare function validateRuleGroupStructure( rules: unknown, spec: RuleGroupStructureSpec, label: string ): string[]; export interface RuleFileStructureArtifact { schemaVersion: 1; source: 'doppler'; ok: boolean; checks: Array<{ id: string; ok: boolean }>; errors: string[]; stats: Record; } export declare function buildRuleFileStructureArtifact( ruleFile: unknown, specs: Record, options: { idPrefix: string; label: string; extraChecks?: Array<{ id: string; run(ruleFile: unknown): string[] }>; } ): RuleFileStructureArtifact;