import type { ForeignReceiptEnvelope, VouchedReputation } from '../types/federation.js';
import type { GatewayImportPolicy } from '../types/gateway.js';
export interface ImportReceiptOptions {
    receiptId: string;
    receiptContent: string;
    originGatewayId: string;
    originGatewaySignature: string;
    agentId: string;
    agentSignature: string;
    importerPrivateKey: string;
    importerGatewayId: string;
    importPolicy: GatewayImportPolicy;
}
/** Import a foreign receipt. Evaluates against the import policy and
 *  signs the import decision. Returns a ForeignReceiptEnvelope. */
export declare function importReceipt(opts: ImportReceiptOptions): ForeignReceiptEnvelope;
/** Verify a foreign receipt envelope's importing gateway signature. */
export declare function verifyReceiptEnvelope(envelope: ForeignReceiptEnvelope, importerPublicKey: string): boolean;
export interface VouchReputationOptions {
    agentId: string;
    tier: number;
    diversityScore: number;
    gatewayPrivateKey: string;
    gatewayId: string;
    ttlSeconds?: number;
}
/** Create a vouched reputation attestation for cross-gateway portability.
 *  Only summary metrics (tier + diversity score) — no receipt history. */
export declare function vouchReputation(opts: VouchReputationOptions): VouchedReputation;
/** Verify a vouched reputation's gateway signature. */
export declare function verifyVouchedReputation(rep: VouchedReputation, gatewayPublicKey: string): boolean;
/** Apply a gateway's import policy downgrade to a foreign reputation.
 *  Returns the effective tier after downgrade. */
export declare function applyReputationDowngrade(rep: VouchedReputation, importPolicy: GatewayImportPolicy): {
    effectiveTier: number;
    effectiveDiversity: number;
    accepted: boolean;
};
//# sourceMappingURL=federation.d.ts.map