import type { Model, StreamFunction } from "../types"; export declare function isKiroApiKey(value: string | undefined): value is string; export declare function kiroApiRegion(options?: { region?: string; }): string; export declare function kiroApiBaseUrl(region: string): string; export declare function toKiroModelId(modelId: string): string; export declare function kiroApiStaticModels(): Model<"kiro-codewhisperer-stream">[]; /** Discover models this API key can use. Returns null when the key is missing. */ export declare function fetchKiroApiModels(apiKey: string, region?: string): Promise[]>; type KiroStreamEvent = { type: "content"; data: string; } | { type: "toolUse"; data: { name: string; toolUseId: string; input: string; stop?: boolean; }; } | { type: "toolUseInput"; data: { input: string; }; } | { type: "toolUseStop"; data: { stop: boolean; }; } | { type: "usage"; data: { inputTokens?: number; outputTokens?: number; }; } | { type: "error"; data: { error: string; message?: string; }; }; export declare function parseKiroApiEvents(buffer: string): { events: KiroStreamEvent[]; remaining: string; }; export declare const streamKiroApiKey: StreamFunction<"kiro-codewhisperer-stream">; export {};