import type { ErrorSeverity, RollbackEvent, SafetyErrorCode, TransactionStep } from '../../types/safety.js';
export declare class SafetyTransactionError extends Error {
    readonly code: SafetyErrorCode;
    readonly severity: ErrorSeverity;
    readonly recovery: string;
    readonly rollbackEvent: RollbackEvent;
    constructor(message: string, code: SafetyErrorCode, severity: ErrorSeverity, recovery: string, rollbackEvent: RollbackEvent);
}
export declare class Transaction {
    readonly id: string;
    private readonly steps;
    private readonly completedSteps;
    constructor();
    addStep(step: TransactionStep): void;
    commit(): Promise<void>;
    rollback(): Promise<void>;
}
//# sourceMappingURL=transaction.d.ts.map