import { m as ModelProviderDeclarationConfig, s as ModelDefinitionConfig } from "./types.models-DPSUKHec.js"; import { o as SsrFPolicy, t as LookupFn } from "./ssrf-skjEI_i5.js"; import { a as fetchWithSsrFGuard } from "./fetch-guard-BKvfwdRa.js"; //#region src/plugin-sdk/provider-catalog-live-runtime.d.ts type LiveModelCatalogFetchGuard = typeof fetchWithSsrFGuard; type LiveModelCatalogHeaderContext = { apiKey?: string; discoveryApiKey?: string; }; type FetchLiveProviderModelIdsParams = { providerId: string; endpoint: string; apiKey?: string; discoveryApiKey?: string; fetchGuard?: LiveModelCatalogFetchGuard; signal?: AbortSignal; timeoutMs?: number; auditContext?: string; policy?: SsrFPolicy; lookupFn?: LookupFn; requireHttps?: boolean; readRows?: (body: unknown) => readonly unknown[]; readModelId?: (row: unknown) => string | undefined; buildRequestHeaders?: (ctx: LiveModelCatalogHeaderContext) => HeadersInit; }; type FetchLiveProviderModelRowsParams = Omit; type CachedLiveProviderModelRowsParams = FetchLiveProviderModelRowsParams & { ttlMs?: number; cacheKeyParts?: readonly unknown[]; shouldCacheRows?: (rows: readonly unknown[]) => boolean; }; declare class LiveModelCatalogHttpError extends Error { readonly status: number; constructor(providerId: string, status: number); } type BuildLiveModelProviderConfigParams = FetchLiveProviderModelIdsParams & { providerConfig: Omit; models: readonly T[]; ttlMs?: number; cacheKeyParts?: readonly unknown[]; }; declare function fetchLiveProviderModelRows(params: FetchLiveProviderModelRowsParams): Promise; declare function getCachedLiveProviderModelRows(params: CachedLiveProviderModelRowsParams): Promise; declare function fetchLiveProviderModelIds(params: FetchLiveProviderModelIdsParams): Promise; declare function buildLiveModelProviderConfig(params: BuildLiveModelProviderConfigParams): Promise; //#endregion export { LiveModelCatalogFetchGuard as a, buildLiveModelProviderConfig as c, getCachedLiveProviderModelRows as d, FetchLiveProviderModelRowsParams as i, fetchLiveProviderModelIds as l, CachedLiveProviderModelRowsParams as n, LiveModelCatalogHeaderContext as o, FetchLiveProviderModelIdsParams as r, LiveModelCatalogHttpError as s, BuildLiveModelProviderConfigParams as t, fetchLiveProviderModelRows as u };