import { Context } from '@deepseek-ai/cordis'; import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol'; import type { DomainGlobalSpec } from '@deepseek-ai/dsh-storage-domain'; import { DiagnosticsCollector } from './diagnostics-collector.ts'; import type { DiagnosticsHandle } from './diagnostics-collector.ts'; import type { DiagnosticsOperation, DiagnosticsView } from './diagnostics-types.ts'; import type { ClientDiagnosticsBatch } from './diagnostics-remote.ts'; export declare const diagnosticsDomain: { name: string; version: number; tables: {}; global: DomainGlobalSpec<{ schemaVersion: 1; coverageVersion: 1; epoch: number; updatedAt: number; rows: { hour: number; version: string; layer: "client" | "host"; operation: "compaction" | "account-global-switch" | "account-session-select" | "account-session-inherit" | "identity-read" | "identity-flight" | "compaction-summary" | "collection"; stage: "ended" | "admitted" | "rpc-invoked" | "host-received" | "identity-validation" | "model-validation" | "cas" | "readback" | "response-received" | "decoded" | "client-settled" | "summary-attempt" | "checkpoint-committed" | "cache-hit" | "joined-flight" | "cooldown" | "dispatched"; metric: "paused" | "unknown" | "started" | "stage" | "success" | "no-op" | "cancelled" | "policy-rejected" | "revoked" | "environment-fault" | "failed" | "interrupted" | "dropped" | "expired" | "clock-discontinuity" | "pending-sample"; reason: "none" | "COPILOT_ACCOUNTS_SETTINGS_UNAVAILABLE" | "COPILOT_ACCOUNTS_CHANGED" | "COPILOT_ACCOUNTS_BUSY" | "COPILOT_ACCOUNTS_CONFLICT" | "COPILOT_ACCOUNTS_COMMIT_UNCERTAIN" | "COPILOT_ACCOUNTS_MODELS_FAILED" | "COPILOT_ACCOUNTS_IDENTITY_UNAVAILABLE" | "COPILOT_ACCOUNTS_IDENTITY_INVALID" | "COPILOT_ACCOUNTS_IDENTITY_TIMEOUT" | "COPILOT_ACCOUNTS_IDENTITY_TLS" | "COPILOT_ACCOUNTS_IDENTITY_NETWORK" | "COPILOT_ACCOUNTS_IDENTITY_AUTH_REJECTED" | "COPILOT_ACCOUNTS_IDENTITY_RATE_LIMITED" | "COPILOT_ACCOUNTS_IDENTITY_HTTP_ERROR" | "unknown" | "rpc-unavailable" | "decode-invalid" | "COPILOT_SESSION_ACCOUNTS_UNAVAILABLE" | "COPILOT_SESSION_ACCOUNTS_SETTINGS_UNAVAILABLE" | "COPILOT_SESSION_ACCOUNTS_COMMIT_UNCERTAIN" | "COPILOT_RESPONSES_REPLAY_SCOPE_MISMATCH" | "CONTEXT_WINDOW_EXCEEDED" | "COPILOT_MANUAL_RECOVERY_FIXED_PREFIX" | "COPILOT_MANUAL_RECOVERY_INDIVISIBLE" | "COPILOT_MANUAL_RECOVERY_CALL_LIMIT" | "COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY" | "COPILOT_MANUAL_RECOVERY_UNBALANCED"; bucket: number; count: number; }[]; pending: { version: string; operation: "compaction" | "account-global-switch" | "account-session-select" | "account-session-inherit" | "identity-read" | "identity-flight" | "compaction-summary" | "collection"; stage: "ended" | "admitted" | "rpc-invoked" | "host-received" | "identity-validation" | "model-validation" | "cas" | "readback" | "response-received" | "decoded" | "client-settled" | "summary-attempt" | "checkpoint-committed" | "cache-hit" | "joined-flight" | "cooldown" | "dispatched"; bucket: number; count: number; }[]; dropped: number; clientDropped: number; clientUnconfirmed: number; saturated: number; evicted: number; interrupted: number; }>; }; export declare function diagnosticsDomainForProfile(profileId: string): typeof diagnosticsDomain; declare module '@deepseek-ai/cordis' { interface Context { githubCopilotDiagnostics: DiagnosticsController; } } export declare function beginDiagnostics(ctx: Context, operation: DiagnosticsOperation): DiagnosticsHandle | undefined; /** Keeps diagnostics durability failures separate from observed business failures. */ export declare class DiagnosticsController extends TypertRemoteService { readonly collector: DiagnosticsCollector; private domain; private state; private problem; private enabled; private dirty; private persistedAt; private revision; private writing; private closed; private settingsBusy; private readonly brackets; constructor(ctx: Context); flush(): Promise; markCompactionCancelled(session: object): void; get(): DiagnosticsView; setEnabled(enabled: boolean): Promise; clear(): Promise; recordClient(batch: ClientDiagnosticsBatch): Promise; } //# sourceMappingURL=diagnostics-host.d.ts.map