import { AuditDb } from "./audit-db.js"; import { SupplyChainAuditEvent } from "../supply-chain/audit-emitter.js"; //#region src/audit/supply-chain-bridge.d.ts /** * Options accepted by {@link bridgeSupplyChainToAudit}. * * @stable */ interface BridgeSupplyChainToAuditOptions { readonly db: AuditDb; readonly onWriteError?: (event: SupplyChainAuditEvent, error: unknown) => void; } /** * Teardown function returned by {@link bridgeSupplyChainToAudit}. * * @stable */ interface SupplyChainBridgeTeardown { (): void; readonly drain: () => Promise; } /** * Subscribe the audit-log subsystem to the supply-chain audit * emitter. * * @stable */ declare function bridgeSupplyChainToAudit(opts: BridgeSupplyChainToAuditOptions): SupplyChainBridgeTeardown; //#endregion export { BridgeSupplyChainToAuditOptions, SupplyChainBridgeTeardown, bridgeSupplyChainToAudit }; //# sourceMappingURL=supply-chain-bridge.d.ts.map