import { z } from 'zod'; import type { DiagnosticsSnapshot, DiagnosticsView } from './diagnostics-types.ts'; export declare const DiagnosticsAnalysisReportSchema: z.ZodObject<{ reportVersion: z.ZodLiteral<1>; coverageVersion: z.ZodLiteral<1>; interpretation: z.ZodLiteral<"descriptive-observations-only">; source: z.ZodEnum<{ "reviewed-view": "reviewed-view"; "persisted-snapshot": "persisted-snapshot"; }>; observedAt: z.ZodNumber; snapshotAt: z.ZodNumber; ageMs: z.ZodNullable; epoch: z.ZodNumber; coverageComplete: z.ZodLiteral; effectivenessVerified: z.ZodLiteral; gaps: z.ZodArray>; collection: z.ZodObject<{ enabled: z.ZodNullable; state: z.ZodNullable>; diagnostic: z.ZodNullable>; dirty: z.ZodNullable; persistedAt: z.ZodNullable; }, z.core.$strict>; counters: z.ZodObject<{ dropped: z.ZodNumber; clientDropped: z.ZodNumber; clientUnconfirmed: z.ZodNumber; evicted: z.ZodNumber; saturated: z.ZodNumber; interrupted: z.ZodNumber; }, z.core.$strict>; populations: z.ZodArray; operation: z.ZodEnum<{ compaction: "compaction"; "account-global-switch": "account-global-switch"; "account-session-select": "account-session-select"; "account-session-inherit": "account-session-inherit"; "identity-read": "identity-read"; "identity-flight": "identity-flight"; "compaction-summary": "compaction-summary"; collection: "collection"; }>; successMeaning: z.ZodEnum<{ "owner-terminal-observation-only": "owner-terminal-observation-only"; "matching-checkpoint-and-end-observed": "matching-checkpoint-and-end-observed"; "summary-call-fulfilled-not-checkpoint-commit": "summary-call-fulfilled-not-checkpoint-commit"; }>; firstHour: z.ZodNumber; lastHour: z.ZodNumber; started: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; terminalObservations: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; outcomes: z.ZodObject<{ success: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; 'no-op': z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; cancelled: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; 'policy-rejected': z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; revoked: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; 'environment-fault': z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; failed: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; unknown: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; interrupted: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; }, z.core.$strict>; terminalLatency: z.ZodArray; count: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; }, z.core.$strict>>; stageAgeObservations: z.ZodArray; count: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; }, z.core.$strict>>; pendingSamples: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; pendingSampleAges: z.ZodArray; count: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; }, z.core.$strict>>; stageObservations: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; startsMinusTerminals: z.ZodNull; exactOperationFailureRate: z.ZodNull; }, z.core.$strict>>; pendingAtSnapshot: z.ZodArray; stage: z.ZodEnum<{ ended: "ended"; admitted: "admitted"; "rpc-invoked": "rpc-invoked"; "host-received": "host-received"; "identity-validation": "identity-validation"; "model-validation": "model-validation"; cas: "cas"; readback: "readback"; "response-received": "response-received"; decoded: "decoded"; "client-settled": "client-settled"; "summary-attempt": "summary-attempt"; "checkpoint-committed": "checkpoint-committed"; "cache-hit": "cache-hit"; "joined-flight": "joined-flight"; cooldown: "cooldown"; dispatched: "dispatched"; }>; bucket: z.ZodNumber; count: z.ZodNumber; }, z.core.$strict>>; investigationCandidates: z.ZodArray; layer: z.ZodEnum<{ client: "client"; host: "host"; }>; operation: z.ZodEnum<{ compaction: "compaction"; "account-global-switch": "account-global-switch"; "account-session-select": "account-session-select"; "account-session-inherit": "account-session-inherit"; "identity-read": "identity-read"; "identity-flight": "identity-flight"; "compaction-summary": "compaction-summary"; collection: "collection"; }>; metric: z.ZodEnum<{ unknown: "unknown"; "environment-fault": "environment-fault"; failed: "failed"; }>; reason: z.ZodEnum<{ none: "none"; COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE"; COPILOT_ACCOUNTS_CHANGED: "COPILOT_ACCOUNTS_CHANGED"; COPILOT_ACCOUNTS_BUSY: "COPILOT_ACCOUNTS_BUSY"; COPILOT_ACCOUNTS_CONFLICT: "COPILOT_ACCOUNTS_CONFLICT"; COPILOT_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN"; COPILOT_ACCOUNTS_MODELS_FAILED: "COPILOT_ACCOUNTS_MODELS_FAILED"; COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE: "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE"; COPILOT_ACCOUNTS_IDENTITY_INVALID: "COPILOT_ACCOUNTS_IDENTITY_INVALID"; COPILOT_ACCOUNTS_IDENTITY_TIMEOUT: "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT"; COPILOT_ACCOUNTS_IDENTITY_TLS: "COPILOT_ACCOUNTS_IDENTITY_TLS"; COPILOT_ACCOUNTS_IDENTITY_NETWORK: "COPILOT_ACCOUNTS_IDENTITY_NETWORK"; COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED: "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED"; COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED: "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED"; COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR: "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR"; unknown: "unknown"; "rpc-unavailable": "rpc-unavailable"; "decode-invalid": "decode-invalid"; COPILOT_SESSION_ACCOUNTS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE"; COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE: "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE"; COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN: "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN"; COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH: "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH"; CONTEXT_WINDOW_EXCEEDED: "CONTEXT_WINDOW_EXCEEDED"; COPILOT_MANUAL_RECOVERY_FIXED_PREFIX: "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX"; COPILOT_MANUAL_RECOVERY_INDIVISIBLE: "COPILOT_MANUAL_RECOVERY_INDIVISIBLE"; COPILOT_MANUAL_RECOVERY_CALL_LIMIT: "COPILOT_MANUAL_RECOVERY_CALL_LIMIT"; COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY: "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY"; COPILOT_MANUAL_RECOVERY_UNBALANCED: "COPILOT_MANUAL_RECOVERY_UNBALANCED"; }>; versions: z.ZodArray; firstHour: z.ZodNumber; lastHour: z.ZodNumber; observations: z.ZodObject<{ value: z.ZodNullable; overflow: z.ZodBoolean; }, z.core.$strict>; regressionProven: z.ZodLiteral; persistentFaultProven: z.ZodLiteral; rootCause: z.ZodLiteral<"unknown">; }, z.core.$strict>>; }, z.core.$strict>; export type DiagnosticsAnalysisReport = z.infer; export type DiagnosticsAnalysisSource = 'reviewed-view' | 'persisted-snapshot'; export declare function diagnosticsUnitName(profileName: string): string; export declare function parseReviewedView(text: string): DiagnosticsView; export declare function parsePersistedUnit(text: string, expectedUnit: string): DiagnosticsSnapshot; export declare function analyzeSnapshot(input: unknown, options: { source: DiagnosticsAnalysisSource; observedAt: number; view?: DiagnosticsView; }): DiagnosticsAnalysisReport; export declare function analyzeReviewedView(view: DiagnosticsView, observedAt: number): DiagnosticsAnalysisReport; //# sourceMappingURL=diagnostics-analysis.d.ts.map