import type { AiAdapterContext, AiCapability, AiInvokeData, AiInvokeResult, AiResponseSpec, AiResultMode, AiUsage } from './types';
/** 各 capability 的 OpenAI 兼容默认响应映射 */
export declare function defaultResponseSpec(capability: AiCapability): AiResponseSpec | null;
/** 将上游 JSON 规范化为统一 data / usage */
export declare function normalizeSyncData(capability: AiCapability, ctx: AiAdapterContext, raw: Record<string, unknown>): {
    data: AiInvokeData;
    usage?: AiUsage;
};
export declare function buildSyncResult(ok: boolean, capability: AiCapability, model: string, mode: AiResultMode, payload: {
    data?: AiInvokeData;
    usage?: AiUsage;
    error?: {
        code: string;
        message: string;
    };
    raw?: unknown;
}): AiInvokeResult;
export declare function buildBinarySyncData(buf: Buffer, spec: AiResponseSpec | null): AiInvokeData;
