import { type GetLoadedModelInfoParams, type LoadedModelInfo } from "../../schemas/index"; import { type RPCOptions } from "../../schemas/common"; /** * Returns introspection info for a loaded `modelId` (local or delegated). * * For local models, `info.modelType` and `info.handlers` are authoritative. * Use them to preflight an SDK call before sending the actual RPC, e.g. * confirm that a model supports `transcribeStream` before calling `transcribe()`. * * For delegated models, only `modelId`, `isDelegated: true`, `providerInfo`, * and `handlers: []` are populated. Preflight against a delegated model is * best-effort and falls through to the provider's error response. * * Throws `ModelNotFoundError` if no entry exists for `modelId`. * * @example * ```typescript * const info = await getLoadedModelInfo({ modelId }); * if (info.isDelegated || info.handlers.includes("completionStream")) { * // safe to call completion(); delegated path defers to provider * } * ``` */ export declare function getLoadedModelInfo(params: GetLoadedModelInfoParams, rpcOptions?: RPCOptions): Promise; //# sourceMappingURL=get-loaded-model-info.d.ts.map