/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import type { TreeContextAlpha, TreeBranchAlpha, RunTransactionParams, TransactionResult, TransactionResultExt, WithValue } from "../simple-tree/index.js";
/**
 * A {@link TreeContextAlpha | tree context} that can be used for e.g. unhydrated nodes.
 */
export declare class UnhydratedTreeContext implements TreeContextAlpha {
    static instance: UnhydratedTreeContext;
    private transactionCount;
    private constructor();
    isBranch(): this is TreeBranchAlpha;
    runTransaction<TValue>(t: () => WithValue<TValue>, params?: RunTransactionParams): TransactionResultExt<TValue, TValue>;
    runTransaction(t: () => void, _params?: RunTransactionParams): TransactionResult;
    runTransactionAsync<TValue>(t: () => Promise<WithValue<TValue>>, params?: RunTransactionParams): Promise<TransactionResultExt<TValue, TValue>>;
    runTransactionAsync(t: () => Promise<void>, params?: RunTransactionParams): Promise<TransactionResult>;
    private static wrapTransactionResult;
}
//# sourceMappingURL=unhydratedTreeContext.d.ts.map