/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { RevisionTag } from "../core";
/**
 * A helper class that organizes the state needed for managing nesting transactions.
 */
export declare class TransactionStack {
    private readonly stack;
    /**
     * The number of transactions currently ongoing.
     */
    get size(): number;
    /**
     * Pushes a new transaction onto the stack. That transaction becomes the current transaction.
     * @param startRevision - the revision of the latest commit when this transaction begins
     * @param repairStore - an optional repair data store for helping with undo or rollback operations
     * @param disposables - an optional collection of disposable data to release after finishing a transaction
     */
    push(startRevision: RevisionTag, dispose: () => void): void;
    /**
     * Ends the current transaction. Fails if there is currently no ongoing transaction.
     * @returns The revision that the closed transaction began on, and its repair data store if it has one.
     */
    pop(): {
        startRevision: RevisionTag;
    };
}
//# sourceMappingURL=transactionStack.d.ts.map