import type { FasedAgentConfig } from "../config/types.fased.js";
import type { FederationMarketplaceDeliveryRecordConfig, FederationMarketplaceOrderConfig } from "../config/types.federation.js";
import { deliverOutboundPayloads, type OutboundSendDeps } from "../infra/outbound/deliver.js";
export type MarketplaceContentSummarizeDeliveryResult = {
    status?: string;
    taskId?: string;
    invoiceId?: string;
    receiptId?: string;
    txRef?: string;
    payerAddress?: string;
    snapshot?: {
        taskId?: string;
        status?: string;
        output?: {
            taskId?: string;
            summary?: string;
            outputText?: string;
            result?: {
                kind?: string;
                summaryText?: string;
                sourceWordCount?: number;
                sentenceCount?: number;
                style?: string;
            };
            payment?: {
                invoiceId?: string;
                receiptId?: string;
                status?: string;
                txRef?: string;
                settledAt?: string;
            };
            completedAt?: string;
        };
    };
};
export type MarketplaceDeliveryAdapterResult = {
    config: FasedAgentConfig;
    order: FederationMarketplaceOrderConfig;
    delivered: boolean;
    targetKind: string;
    deliveryStatus: NonNullable<FederationMarketplaceDeliveryRecordConfig["status"]>;
    message: string;
};
type DeliverDeps = {
    fetchImpl?: typeof fetch;
    deliverOutboundPayloadsImpl?: typeof deliverOutboundPayloads;
    outboundSendDeps?: OutboundSendDeps;
    federationBaseUrl?: string;
    federationApiToken?: string;
    now?: () => Date;
};
export declare function deliverMarketplaceContentSummarizeResult(params: {
    config: FasedAgentConfig;
    orderId: string;
    result: MarketplaceContentSummarizeDeliveryResult;
    deps?: DeliverDeps;
}): Promise<MarketplaceDeliveryAdapterResult | {
    error: string;
    statusCode: number;
}>;
export {};
