/**
 * This Source Code is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Copyright (c) Infonomic Company Limited
 */
import type * as React from 'react';
import type { LexicalEditor } from 'lexical';
/**
 * Provider used by the toolbar plugin to expose the *active* Lexical
 * editor (the editor for the current selection — may be a nested
 * composer's editor) to contributed toolbar items.
 */
export declare function ToolbarActiveEditorProvider({ editor, children, }: {
    editor: LexicalEditor;
    children: React.ReactNode;
}): React.JSX.Element;
/**
 * Returns the editor a toolbar contribution should dispatch commands on.
 * Falls back to the root composer editor when called outside the
 * toolbar's provider, so contributions remain usable in standalone
 * test/preview contexts.
 */
export declare function useToolbarActiveEditor(): LexicalEditor;
