/**
 * SBV ISO 20022 Gateway — Kafka / MQ Message Publisher
 * Phân phối message đã xác thực tới downstream consumers qua Kafka.
 *
 * Topics:
 *   sbv.iso20022.pain       — Payment Initiation (pain.*)
 *   sbv.iso20022.pacs       — Payment Clearing & Settlement (pacs.*)
 *   sbv.iso20022.camt       — Cash Management (camt.*)
 *   sbv.iso20022.auth       — Regulatory Reporting (auth.*)
 *   sbv.iso20022.mbridge    — ASEAN mBridge (pacs.009 outbound)
 *   sbv.iso20022.dlq        — Dead Letter Queue (failed messages)
 *
 * Cơ quan chủ quản: Ngân hàng Nhà nước Việt Nam (SBV)
 */
export interface PublishResult {
    published: boolean;
    topic: string;
    partition?: number;
    offset?: string;
    error?: string;
}
export interface MessageEnvelope {
    msgDefId: string;
    uetr?: string | null;
    senderBic?: string;
    msgHash: string;
    downstream: string;
    payload: unknown;
    receivedAt: string;
}
/**
 * Gửi message đã xác thực vào đúng Kafka topic dựa trên msgDefId.
 * Fire-and-forget safe: nếu Kafka chưa bật, log warning và trả về published=false.
 *
 * @param envelope - Message envelope kèm metadata
 */
export declare function publishMessage(envelope: MessageEnvelope): Promise<PublishResult>;
/**
 * Graceful disconnect — gọi khi server shutdown.
 */
export declare function disconnectKafka(): Promise<void>;
//# sourceMappingURL=kafka-publisher.d.ts.map