export type AnthropicAuthEnvVar = 'CLAUDE_CODE_OAUTH_TOKEN' | 'ANTHROPIC_API_KEY'; export type TelegramCredentialPlan = { kind: 'openai'; notices: string[]; } | { kind: 'xai'; apiKey?: string; notices: string[]; } | { kind: 'anthropic'; credential: string; envVar: AnthropicAuthEnvVar; notices: string[]; } | { kind: 'missing'; errors: string[]; }; export interface TelegramCredentialDeps { openaiApiKey?: string | undefined; codexApiKey?: string | undefined; loadAnthropicCredential?: () => string | undefined; loadXaiKey?: () => string | undefined; hasXaiOAuth?: () => boolean; detectMode?: (token: string) => 'oauth' | 'api-key'; } export declare function isOpenAiRoutedProvider(providerName: string): boolean; export declare function isXaiRoutedProvider(providerName: string): boolean; export declare function planTelegramCredential(providerName: string, deps?: TelegramCredentialDeps): TelegramCredentialPlan; export declare function applyTelegramCredentialPlan(plan: TelegramCredentialPlan, config: { apiKey?: string | undefined; }, io?: { log?: (message: string) => void; error?: (message: string) => void; }): boolean;