export type ProxyLocale = "cn" | "intl";
export type ProxyKeySource = "managed" | "user";
export type ProxyQuotaSource = "subscription" | "topup" | "free" | "own-key";
export type ProxyRequestCategory = "text" | "image" | "video" | "music" | "audio" | "vision";
export interface TransportUsageInfo {
    input: number;
    output: number;
    cacheRead?: number;
}
export interface TransportResponsePayload {
    statusCode: number;
    body: string;
    usage?: TransportUsageInfo;
}
export interface TransportResponseMsg {
    type: "proxy.response";
    id: string;
    payload: TransportResponsePayload;
}
export interface TransportErrorPayload {
    error: string;
    code: string;
    retryable: boolean;
}
export interface TransportErrorMsg {
    type: "proxy.error";
    id: string;
    payload: TransportErrorPayload;
}
export interface TransportBillingInfo {
    premiumCost: number;
    tier: string;
    provider: string;
    model: string;
    requestCategory?: ProxyRequestCategory;
    quotaSource?: ProxyQuotaSource;
    keySource?: ProxyKeySource;
}
export interface AgentExecutionRefs {
    executionId?: string;
    rootExecutionId?: string;
    parentExecutionId?: string;
    sidechainId?: string;
    attemptId?: string;
    outcomeId?: string;
}
export type AgentExecutionSource = "turn" | "resume" | "replay" | "sidechain";
export type AgentAttemptSource = "primary" | "retry" | "fallback" | "repair";
export type AgentSidechainType = "research" | "planner" | "plan-repair" | "code-repair" | "media-prep" | "custom";
export type AgentSidechainRole = "leaf" | "orchestrator";
export type AgentSidechainMergePolicy = "summary-only" | "append-messages" | "replace-context" | "manual";
export type AgentExecutionSessionStatus = "running" | "interrupted" | "completed" | "failed" | "cancelled";
export type ControlApprovalDecision = "approved" | "denied" | "expired" | "cancelled";
export type ControlApprovalSource = "user" | "policy" | "system" | "replay";
export type ExecutionInterruptReason = "approval-wait" | "gateway-disconnected" | "policy-pause" | "user-pause" | "tool-backpressure" | "lease-expired";
export type ExecutionResumeSource = "user" | "gateway-reconnect" | "policy" | "system";
export type ExecutionCancelReason = "user-cancel" | "policy-cancel" | "lease-expired" | "superseded" | "branch-cancel";
