/**
 * SBV ISO 20022 Gateway — Audit Logger
 * Ghi nhật ký kiểm toán cho mọi message ISO 20022 xử lý qua gateway.
 * Đáp ứng yêu cầu AML/CFT của NHNN và FATF Recommendation 16 (Wire Transfer).
 *
 * Log format: JSON structured (Winston) — sẵn sàng ship tới ELK / Splunk
 * Cơ quan chủ quản: Ngân hàng Nhà nước Việt Nam (SBV)
 */
export interface AuditEntry {
    /** ISO 20022 Message Definition Identifier (vd: pacs.008.001.09) */
    msgDefId: string;
    /** Unique End-to-end Transaction Reference (UUID v4) */
    uetr?: string | null;
    /** BIC của tổ chức gửi message */
    senderBic?: string;
    /** SHA-256 hash toàn bộ message body — dùng để neo trên Gov-Chain */
    msgHash: string;
    /** Downstream target (NAPAS_DOMESTIC / ASEAN_MBRIDGE / ...) */
    downstream?: string;
    /** Cảnh báo AML/business rule (không block) */
    warnings?: {
        field: string;
        message: string;
    }[];
    /** Trường dữ liệu bổ sung tuỳ ngữ cảnh */
    extra?: Record<string, unknown>;
}
/**
 * Ghi audit entry cho một message đã được gateway xử lý thành công.
 * @param entry - Thông tin kiểm toán đầy đủ
 */
export declare function logAuditEntry(entry: AuditEntry): void;
/**
 * Ghi log khi message bị từ chối do validation lỗi.
 */
export declare function logValidationFailure(msgDefId: string, senderBic: string | undefined, errors: {
    field: string;
    message: string;
}[]): void;
/**
 * Tính SHA-256 hash của message body (object hoặc XML string).
 * Hàm tiện ích dùng chung giữa router và audit logger.
 */
export declare function computeMessageHash(body: unknown): string;
//# sourceMappingURL=audit-logger.d.ts.map