import { type ContextPlanInput, type ContextProviderProfile, type ContextTokenEstimator } from './context-plan.js'; /** Only request-level provider input usage qualifies a profile; synthetic values are diagnostic only. */ export interface ContextComparison { caseId: string; input: ContextPlanInput; actualInputTokens: number; source: 'provider' | 'synthetic'; /** Immutable reference to the provider response/usage artifact (never a credential or body). */ usageRef: string; } export interface ContextQualification { schemaVersion: 'decision-context-qualification/v1'; profile: { id: string; version: string; digest: string; }; estimator: { id: string; version: string; }; cases: Array<{ caseId: string; source: ContextComparison['source']; usageRef: string; planDigest: string; estimatedInputTokens: number; actualInputTokens: number; errorTokens: number; undercountBps: number; }>; worstUndercountBps: number; /** No observed usage may be promoted from synthetic fixtures. */ qualifiedForEnforcement: boolean; reason: 'provider-comparisons-within-margin' | 'synthetic-only' | 'undercount-exceeds-margin'; } /** Retains a body-free, immutable comparison. Reject split samples: usage is per request, not per group. */ export declare function assertContextQualified(qualification: ContextQualification, profile: ContextProviderProfile, estimator: ContextTokenEstimator): void; export declare function compareContextUsage(comparisons: readonly ContextComparison[], profile: ContextProviderProfile, estimator: ContextTokenEstimator): ContextQualification; //# sourceMappingURL=context-qualification.d.ts.map