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