import { xai as _xai } from "@ai-sdk/xai"; import { AISDKLanguageModel } from "../language-model.js"; /** * xAI model IDs (derived from @ai-sdk/xai). */ export type XaiModelId = Parameters[0]; /** * Options for creating a custom xAI provider. */ export interface XaiProviderOptions { /** API key for authentication */ apiKey?: string; /** Custom base URL */ baseURL?: string; /** Custom headers */ headers?: Record; } /** * Create a custom xAI provider with explicit credentials. * * @example * ```ts * const xai = createXai({ apiKey: "xai-..." }); * const model = xai("grok-3"); * ``` */ export declare function createXai(options?: XaiProviderOptions): (modelId: XaiModelId) => AISDKLanguageModel; /** * Create a kernl-compatible xAI language model. * Uses XAI_API_KEY environment variable. * * @example * ```ts * import { xai } from '@kernl-sdk/ai/xai'; * * const grok = xai('grok-3'); * const response = await grok.generate([...], {}); * ``` */ export declare function xai(modelId: XaiModelId): AISDKLanguageModel; //# sourceMappingURL=xai.d.ts.map