import type { OpenAiCompatibleModelDiscoverySource } from './types.js';
export type OpenAiCompatibleDiscoveredModel = {
    id: string;
    name: string;
    sizeBytes?: number;
    modifiedAt?: string;
};
export type OpenAiCompatibleModelDiscoveryOptions = OpenAiCompatibleModelDiscoverySource & {
    fetchImpl?: (url: unknown, init?: unknown) => Promise<globalThis.Response>;
    signal?: AbortSignal;
};
/**
 * Discovers profile-owned models without shelling out. Local providers use
 * their HTTP endpoints, and hosted providers use their OpenAI-compatible
 * `/models` endpoint when the required credentials are configured.
 */
export declare class OpenAiCompatibleModelDiscoveryService {
    static listModels(options: OpenAiCompatibleModelDiscoveryOptions): Promise<OpenAiCompatibleDiscoveredModel[]>;
    private static listOllamaTags;
    private static listOpenAiModels;
    private static toOllamaDiscoveredModel;
    private static toOpenAiDiscoveredModel;
    private static isChatCapable;
    private static isEmbeddingModel;
    private static readJsonResponse;
    private static headers;
    private static trimTrailingSlash;
    private static openAiToNativeBaseUrl;
}
//# sourceMappingURL=openai-compatible-model-discovery.d.ts.map