import type { FasedAgentConfig } from "../config/config.js";
import type { FederationMarketplaceDeliveryRecordConfig, FederationMarketplaceOrderConfig } from "../config/types.federation.js";
export type MarketplaceCapabilityAdapterRunInput = {
    inputText?: string;
    actor?: "buyer" | "seller" | "agent";
};
export type MarketplaceCapabilityAdapterRunResult = {
    ok: true;
    config: FasedAgentConfig;
    order: FederationMarketplaceOrderConfig;
    delivered: boolean;
    targetKind: string;
    deliveryStatus: NonNullable<FederationMarketplaceDeliveryRecordConfig["status"]>;
    result: Record<string, unknown>;
    message: string;
} | {
    ok: false;
    statusCode: number;
    code: string;
    message: string;
};
export type MarketplaceCapabilityAdapterDeps = {
    fetchImpl: typeof fetch;
    now: () => Date;
};
export declare function runMarketplaceCapabilityAdapter(params: {
    config: FasedAgentConfig;
    orderId: string;
    input?: MarketplaceCapabilityAdapterRunInput;
    deps?: Partial<MarketplaceCapabilityAdapterDeps>;
}): Promise<MarketplaceCapabilityAdapterRunResult>;
