import { HookDispatcher } from './HookDispatcher.js'; export type AccountingMutation = "subscription.addonAttached" | "subscription.addonDetached" | "usage.reported" | "credit.consumed" | "credit.granted" | "credit.adjusted"; export declare class CommittedOperationHookError extends Error { readonly result: unknown; constructor(result: unknown, cause: unknown); } export declare class TransactionHooks { private readonly hooks; constructor(hooks?: HookDispatcher); before(mutation: AccountingMutation, input: T, permitted: string[]): Promise; after(mutation: AccountingMutation, input: object, result: unknown): Promise; } //# sourceMappingURL=TransactionHooks.d.ts.map