import type { Context } from '@deepseek-ai/cordis'; import type { Api, Model } from '@earendil-works/pi-ai'; /** Public facts from this plugin's pi-ai dependency, not a claim about another Core copy. */ export interface CopilotModelFacts { readonly id: string; readonly provider: string; readonly api: string; readonly name: string; readonly baseUrl: string; readonly contextWindow: number; readonly maxTokens: number; readonly input: readonly ('text' | 'image')[]; readonly reasoning: boolean; readonly supportsReasoningOff: boolean; readonly reasoningEfforts: Readonly>; readonly headers?: Readonly>; } export interface CopilotCatalogSnapshot { readonly models: readonly CopilotModelFacts[]; /** True only for models whose actual native provider is built by this plugin. */ readonly authoritative: boolean; } /** Project only public leaves and the same pi library's supported wire efforts. */ export declare function projectModelFacts(model: Model): CopilotModelFacts; /** Stock Core owns its own catalog; local metadata must not retire corrections on its behalf. */ export declare function readCopilotCatalog(_ctx: Context): CopilotCatalogSnapshot; /** The preview uses this exact pi provider instance family, so local model facts are authoritative there. */ export declare function readPreviewCatalog(): CopilotCatalogSnapshot; /** Scope optional preview contributions to this plugin's successfully mounted route service. */ export declare function isPluginPreviewProvider(ctx: Context, provider: string): boolean; //# sourceMappingURL=model-protocol.d.ts.map