import type { Api, AssistantMessage, Context, KnownProvider, Model } from "@earendil-works/pi-ai";
export declare function resolveBaseUrlOverride(raw: string | null | undefined): string | null;
export declare function bytesToBase64(bytes: Uint8Array): string;
export declare function extractText(message: AssistantMessage): string;
export declare function throwIfAssistantMessageFailed(message: AssistantMessage, modelId: string): void;
export declare function wantsImages(context: Context): boolean;
export declare function tryGetModel(provider: KnownProvider, modelId: string): Model<Api> | null;
export declare function createSyntheticModel({ provider, modelId, api, baseUrl, allowImages, headers, }: {
    provider: KnownProvider;
    modelId: string;
    api: Model<Api>["api"];
    baseUrl: string;
    allowImages: boolean;
    headers?: Record<string, string>;
}): Model<Api>;
