import { CLASSIFIER_MODELS, IMAGE_MODELS, MODELS } from "../models.generated.ts"; import { type CreateModelsOptions, type MutableModels, type Provider } from "../models.ts"; import type { AnyModel, ClassifierModel, ImageModel, Model } from "../types.ts"; import { radiusProvider } from "./radius.ts"; export { radiusProvider }; /** Providers present in the generated catalog. `KnownProvider` additionally * includes purely dynamic providers (e.g. "radius") that have no static * catalog entry. */ export type BuiltinProvider = keyof typeof MODELS; type BuiltinChatModelId = keyof (typeof MODELS)[TProvider]; type BuiltinImageModelId = keyof (typeof IMAGE_MODELS)[TProvider]; type BuiltinClassifierModelId = keyof (typeof CLASSIFIER_MODELS)[TProvider]; /** API ids of catalog entries. Built-in getters return `Model` shapes, not literal entry types. */ type CatalogApi = TEntry extends { api: infer TApi extends string; } ? TApi : never; /** Typed read of one generated built-in chat model. */ export declare function getBuiltinModel>(provider: TProvider, modelId: TModelId): Model>; /** Typed read of one generated built-in image model. */ export declare function getBuiltinImageModel>(provider: TProvider, modelId: TModelId): ImageModel>; /** Typed read of one generated built-in classifier model. */ export declare function getBuiltinClassifierModel>(provider: TProvider, modelId: TModelId): ClassifierModel>; export declare function getBuiltinProviders(): BuiltinProvider[]; /** Generation timestamp shared by all built-in provider catalogs. */ export declare function getBuiltinModelDataGeneratedAt(): number | undefined; export declare function getBuiltinModels(provider: TProvider): Model]>>[]; export declare function getBuiltinImageModels(provider: TProvider): ImageModel]>>[]; export declare function getBuiltinClassifierModels(provider: TProvider): ClassifierModel]>>[]; export declare function getAllBuiltinModels(provider: TProvider): AnyModel[]; /** All built-in providers, freshly constructed. */ export declare function builtinProviders(): Provider[]; /** A `Models` collection with every built-in provider registered. */ export declare function builtinModels(options?: CreateModelsOptions): MutableModels; //# sourceMappingURL=all.d.ts.map