export declare const DEFAULT_BASE: string export type Provider = 'openai' | 'anthropic' | 'gemini' | 'mistral' | 'openrouter' | 'azure' | 'bedrock' export type Reason = | 'over_budget' | 'request_limit' | 'customer_limit' | 'run_limit' | 'hourly_limit' | 'billing_inactive' | 'kill_switch' | 'key_paused' | 'budget_paused' | 'policy_provider' | 'policy_model' | 'policy_time' | 'customer_required' | 'rate_limit' | 'loop_detected' | 'spend_spike' | 'approval_required' | 'approval_pending' | 'approval_denied' | 'approval_limit' export type ApprovalState = 'pending' | 'approved' | 'denied' | 'expired' | 'used' export interface XpenvoOptions { /** Your Xpenvo agent key (xpv_...). Keep it in an environment variable. */ key: string /** Default https://agents.xpenvo.com */ base?: string /** Run id: every request with the same id is one run in the Flight Recorder. */ run?: string /** A label for the current step of the run. */ step?: string /** Your own id for the end customer (never an email address). */ customer?: string /** Wait for a person to approve a big request, then resend it. Default true. */ waitForApproval?: boolean /** Give up waiting for approval after this long. Default 10 minutes. */ approvalTimeoutMs?: number /** How often to check an approval. Default 5000, at least 1000. */ pollMs?: number /** The fetch to use underneath. Default globalThis.fetch. */ fetch?: typeof fetch } export interface Xpenvo { baseURL(provider: 'azure', resource: string): string baseURL(provider: 'bedrock', region: string): string baseURL(provider: Exclude): string headers(extra?: Record): Record with(change: Partial): Xpenvo approvalStatus(id: string): Promise waitForApproval(id: string, timeoutMs?: number): Promise fetch(input: RequestInfo | URL, init?: RequestInit): Promise withApproval(call: () => Promise): Promise } export declare function xpenvo(options: XpenvoOptions): Xpenvo export declare function reason(errOrResponse: unknown): Reason | string | null export declare const REASONS: Record export declare function newRunId(prefix?: string): string