import type { ErrorInfo } from "../state/protocol/common/state.js"; export { isPolicyResolutionErrorData, toPolicyResolutionErrorData } from "./vscode/agentErrorMeta.js"; export interface IAgentErrorTelemetryMeta { readonly providerCallId?: string; readonly serviceRequestId?: string; } export type ErrorDetail = { readonly kind: "fetch"; readonly value: Record; } | { readonly kind: "diagnostic"; readonly errorCode?: string; readonly statusCode?: number; readonly url?: string; readonly providerCallId?: string; readonly serviceRequestId?: string; readonly eligibleForAutoSwitch?: boolean; }; export declare function readErrorDetail(error: Pick): ErrorDetail | undefined; export declare function readAgentErrorTelemetryMeta(error: ErrorInfo): IAgentErrorTelemetryMeta;