import type { Api, FetchImpl, Model } from "@oh-my-pi/pi-catalog/types"; import { type ApiKey } from "../auth-retry.js"; import * as AIError from "../error/index.js"; import type { EmbeddingRequest, EmbeddingResult } from "./types.js"; export interface EmbeddingOptions { apiKey: ApiKey; fetch?: FetchImpl; signal?: AbortSignal; } /** Non-2xx response from an OpenAI-compatible embeddings endpoint. */ export declare class EmbeddingApiError extends AIError.ProviderHttpError { readonly name = "EmbeddingApiError"; } /** Call an OpenAI/OpenRouter-compatible embeddings endpoint. */ export declare function embedOpenAI(model: Model, request: EmbeddingRequest, options: EmbeddingOptions): Promise;