import type { AzureClientOptions } from 'openai/azure'; import type { SapOpenAiContext, SapOpenAiInput } from './types.ts'; /** * Creates a configuration object that can be passed directly to `new AzureOpenAI(config)`. * Resolves the deployment URL and sets up token-based authentication for SAP AI Core. * @param options - The options for creating the OpenAI configuration. * @returns A promise that resolves to an AzureClientOptions object. * @experimental This function is experimental and may change at any time without prior notice. * @example * ```ts * import { AzureOpenAI } from 'openai'; * import { createOpenAiConfig } from '@sap-ai-sdk/openai'; * * const config = await createOpenAiConfig('gpt-5.4'); * const client = new AzureOpenAI(config); * await client.chat.completions.create({ * messages: [{ role: 'user', content: 'Hello!' }] * }); * ``` */ export declare function createOpenAiConfig(options: SapOpenAiInput): Promise; /** * Resolves the deployment URL, destination, and resource group for SAP AI Core. * Use this when you need access to the resolved context beyond just the Azure client options. * @param options - Options including model deployment, destination, API version, and client type. A plain model name string is accepted as shorthand for `{ deployment: modelName }`. * @returns A promise that resolves to a {@link SapOpenAiContext} containing the Azure client options, destination, and resource group. * @internal */ export declare function createSapOpenAiContext(options: SapOpenAiInput): Promise; //# sourceMappingURL=config.d.ts.map