import { completeSimple, type Api, type Model, type ModelThinkingLevel } from "@earendil-works/pi-ai";
import type { PreferencesStore } from "./preferences-store.js";
import { type ApiModel } from "./model-registry.js";
export declare function toPiModel(model: ApiModel): Model<Api>;
type CompleteSimpleFn = typeof completeSimple;
export declare function completeModelText(model: ApiModel, prefs: PreferencesStore | undefined, args: {
    systemPrompt: string;
    userPrompt: string;
    maxTokens?: number;
    thinkingLevel?: ModelThinkingLevel;
    timeoutMs?: number;
}, completeFn?: CompleteSimpleFn): Promise<string>;
export declare function testModelPreference(prefs: PreferencesStore, pref: string, completer?: typeof completeModelText): Promise<{
    ok: boolean;
    modelResolved?: string;
    latencyMs?: number;
    error?: string;
    status?: number;
}>;
export {};
//# sourceMappingURL=model-completion.d.ts.map