import type { RuneConfig } from './config/schema.js'; export declare class RuneAiError extends Error { readonly cause?: unknown | undefined; constructor(message: string, cause?: unknown | undefined); } export type AnthropicAuthKind = 'api-key' | 'oauth'; export interface AnthropicAuth { readonly token: string; readonly kind: AnthropicAuthKind; readonly sourceEnv: string; } export declare const ANTHROPIC_OAUTH_ENVS: ReadonlyArray; export declare function classifyAnthropicToken(token: string): AnthropicAuthKind; export declare function resolveAnthropicAuth(env?: NodeJS.ProcessEnv): AnthropicAuth | undefined; export type AiInterpretation = { readonly kind: 'matched'; readonly scriptName: string; readonly reason: string; } | { readonly kind: 'generated'; readonly suggestedName: string; readonly command: string | ReadonlyArray; readonly reason: string; readonly description?: string; } | { readonly kind: 'unsure'; readonly reason: string; }; export interface AiInterpretOptions { readonly request: string; readonly config: RuneConfig; readonly model?: string; readonly apiKey?: string; } export declare function getAnthropicApiKey(): string | undefined; export declare function hasAnthropicApiKey(): boolean; export declare function interpretRequest(options: AiInterpretOptions): Promise; //# sourceMappingURL=ai.d.ts.map