/**
 * 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';
export type ToolbarExtensionItem = {
    id: string;
    order?: number;
    node: React.ReactNode;
};
type ToolbarExtensionsContextType = {
    items: ToolbarExtensionItem[];
    register: (item: ToolbarExtensionItem) => () => void;
    /**
     * The editor instance for the current selection. This matters when using nested composers.
     */
    editor: LexicalEditor;
    /**
     * The root editor instance for this composer.
     */
    rootEditor: LexicalEditor;
};
export declare function ToolbarExtensionsProvider({ children, }: {
    children: React.ReactNode;
}): React.JSX.Element;
export declare function useToolbarExtensions(): ToolbarExtensionsContextType;
export {};
