import type { BackgroundElementTemplateInstance } from './instance.js';
import type { ElementTemplateUpdateCommitContext } from '../protocol/types.js';
interface ElementTemplateCommitNonPayloadState {
    removedSubtrees: BackgroundElementTemplateInstance[];
}
type ElementTemplateGlobalCommitContext = ElementTemplateUpdateCommitContext & {
    nonPayload: ElementTemplateCommitNonPayloadState;
};
export declare const globalCommitContext: ElementTemplateGlobalCommitContext;
export declare function resetGlobalCommitContext(): void;
export declare function markRemovedSubtreeForCurrentCommit(root: BackgroundElementTemplateInstance): void;
export declare function takeRemovedSubtreesForCurrentCommit(): BackgroundElementTemplateInstance[];
export {};
