import { type AssistantMessageEvent, type Message } from "@earendil-works/pi-ai/compat"; import { type ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { SuggestionBridge } from "./pi-suggestion-editor.js"; export interface PiModelRequestOptions { readonly signal: AbortSignal; readonly maxTokens: number; readonly sessionId?: string; readonly apiKey?: string; readonly headers?: Record; readonly env?: Record; } export type PiModelStream = (model: unknown, context: { systemPrompt: string; messages: Message[]; }, options: PiModelRequestOptions) => AsyncIterable; export interface PiModelBridgeOptions { readonly getContext: () => ExtensionContext | undefined; readonly stream?: PiModelStream; } /** * Uses only Pi's selected model and credential resolver. A missing model or * unresolved auth deliberately produces no candidate, leaving the editor * untouched instead of inventing an offline completion. */ export declare function createPiModelSuggestionBridge(options: PiModelBridgeOptions): SuggestionBridge; //# sourceMappingURL=pi-model-bridge.d.ts.map