import * as platejs_react from 'platejs/react';
import * as platejs from 'platejs';
import * as zustand_x from 'zustand-x';
import * as mutative from 'mutative';
import * as is_hotkey from 'is-hotkey';
import { T as TTodoListItemElement } from '../BaseTodoListPlugin-CjzKTmKi.js';

declare const BulletedListPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"ul", {}, {}, Record<"ul", {
    toggle: () => void;
}>, {}>>;
declare const TaskListPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"taskList", {
    inheritCheckStateOnLineEndBreak: boolean;
    inheritCheckStateOnLineStartBreak: boolean;
}, {}, Record<"taskList", {
    toggle: () => void;
}>, {}>>;
declare const NumberedListPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"ol", {}, {}, Record<"ol", {
    toggle: () => void;
}>, {}>>;
declare const ListItemContentPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"lic", {}, {}, {}, {}>>;
declare const ListItemPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"li", {}, {}, {}, {}>>;
/**
 * Enables support for bulleted, numbered and to-do lists with React-specific
 * features.
 */
declare const ListPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"listClassic", {
    enableResetOnShiftTab?: boolean;
    inheritCheckStateOnLineEndBreak?: boolean;
    inheritCheckStateOnLineStartBreak?: boolean;
    validLiChildrenTypes?: string[];
}, {}, {
    toggle: {
        bulletedList: (() => boolean) & (() => boolean);
        list: ((args_0: {
            type: string;
        }) => boolean) & ((args_0: {
            type: string;
        }) => boolean);
        numberedList: (() => boolean) & (() => boolean);
        taskList: ((defaultChecked?: boolean | undefined) => boolean) & ((defaultChecked?: boolean | undefined) => boolean);
    };
}, {}>>;

declare const TodoListPlugin: platejs_react.PlatePlugin<platejs.PluginConfig<"action_item", {
    inheritCheckStateOnLineEndBreak: boolean;
    inheritCheckStateOnLineStartBreak: boolean;
}, {}, Record<"action_item", {
    toggle: () => void;
}>, {}>>;

declare const useListToolbarButtonState: ({ nodeType, }?: {
    nodeType?: string | undefined;
}) => {
    nodeType: string;
    pressed: boolean;
};
declare const useListToolbarButton: (state: ReturnType<typeof useListToolbarButtonState>) => {
    props: {
        pressed: boolean;
        onClick: () => void;
        onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => void;
    };
};

declare const useTodoListElementState: ({ element, }: {
    element: TTodoListItemElement;
}) => {
    checked: boolean | undefined;
    editor: {
        id: string;
        children: platejs.Value;
        history: platejs.History;
        marks: platejs.EditorMarks | null;
        meta: platejs.UnknownObject;
        operations: platejs.Operation<platejs.TElement | platejs.TText>[];
        selection: platejs.EditorSelection;
    } & platejs.EditorMethods<platejs.Value> & platejs.UnknownObject & {
        dom: {
            composing: boolean;
            currentKeyboardEvent: is_hotkey.KeyboardEventLike | null;
            focused: boolean;
            prevSelection: platejs.TRange | null;
            readOnly: boolean;
        };
        meta: platejs.EditorBase["meta"] & {
            key: any;
            components: platejs.NodeComponents;
            isFallback: boolean;
            pluginCache: {
                decorate: string[];
                handlers: {
                    onChange: string[];
                };
                inject: {
                    nodeProps: string[];
                };
                node: {
                    isContainer: string[];
                    isLeaf: string[];
                    isText: string[];
                    leafProps: string[];
                    textProps: string[];
                    types: Record<string, string>;
                };
                normalizeInitialValue: string[];
                render: {
                    aboveEditable: string[];
                    aboveNodes: string[];
                    aboveSlate: string[];
                    afterContainer: string[];
                    afterEditable: string[];
                    beforeContainer: string[];
                    beforeEditable: string[];
                    belowNodes: string[];
                    belowRootNodes: string[];
                };
                rules: {
                    match: string[];
                };
                useHooks: string[];
            };
            pluginList: any[];
            uid?: string;
        };
        plugins: Record<string, any>;
        setOptions: {
            <C extends platejs.AnyPluginConfig>(plugin: platejs.WithRequiredKey<C>, options: (state: mutative.Draft<Partial<platejs.InferOptions<C>>>) => void): void;
            <C extends platejs.AnyPluginConfig>(plugin: platejs.WithRequiredKey<C>, options: Partial<platejs.InferOptions<C>>): void;
        };
        getInjectProps: <C extends platejs.AnyPluginConfig = platejs.PluginConfig>(plugin: platejs.WithRequiredKey<C>) => platejs.InjectNodeProps<C>;
        getOption: <C extends platejs.AnyPluginConfig, StateType extends platejs.InferOptions<C>, TSelectors extends platejs.InferSelectors<C>, K extends keyof StateType | keyof TSelectors | "state">(plugin: platejs.WithRequiredKey<C>, key: K, ...args: K extends keyof TSelectors ? Parameters<TSelectors[K]> : []) => K extends "state" ? StateType : K extends keyof TSelectors ? ReturnType<TSelectors[K]> : K extends keyof StateType ? StateType[K] : never;
        getOptions: <C extends platejs.AnyPluginConfig = platejs.PluginConfig>(plugin: platejs.WithRequiredKey<C>) => platejs.InferOptions<C>;
        getOptionsStore: <C extends platejs.AnyPluginConfig>(plugin: platejs.WithRequiredKey<C>) => zustand_x.TStateApi<platejs.InferOptions<C>, [["zustand/mutative-x", never]], {}, platejs.InferSelectors<C>>;
        getPlugin: <C extends platejs.AnyPluginConfig = platejs.PluginConfig>(plugin: platejs.WithRequiredKey<C>) => C extends {
            node: any;
        } ? C : platejs.EditorPlugin<C>;
        getType: (pluginKey: string) => string;
        setOption: <C extends platejs.AnyPluginConfig, K extends keyof platejs.InferOptions<C>>(plugin: platejs.WithRequiredKey<C>, optionKey: K, value: platejs.InferOptions<C>[K]) => void;
    } & {
        api: platejs.EditorApi & platejs.UnionToIntersection<platejs.InferApi<platejs_react.PlateCorePlugin>>;
        meta: platejs.BaseEditor["meta"] & {
            pluginList: platejs_react.AnyEditorPlatePlugin[];
            shortcuts: platejs_react.Shortcuts;
        };
        plugins: Record<string, platejs_react.AnyEditorPlatePlugin>;
        tf: platejs.EditorTransforms & platejs.UnionToIntersection<platejs.InferTransforms<platejs_react.PlateCorePlugin>>;
        transforms: platejs.EditorTransforms & platejs.UnionToIntersection<platejs.InferTransforms<platejs_react.PlateCorePlugin>>;
        getApi: <C extends platejs.AnyPluginConfig = platejs.PluginConfig>(plugin?: platejs.WithRequiredKey<C>) => platejs_react.PlateEditor["api"] & platejs.InferApi<C>;
        getPlugin: <C extends platejs.AnyPluginConfig = platejs.PluginConfig>(plugin: platejs.WithRequiredKey<C>) => C extends {
            node: any;
        } ? C : platejs_react.EditorPlatePlugin<C>;
        getTransforms: <C extends platejs.AnyPluginConfig = platejs.PluginConfig>(plugin?: platejs.WithRequiredKey<C>) => platejs_react.PlateEditor["tf"] & platejs.InferTransforms<C>;
        uid?: string;
    } & {
        store: platejs_react.PlateStore;
    };
    element: TTodoListItemElement;
    readOnly: boolean;
};
declare const useTodoListElement: (state: ReturnType<typeof useTodoListElementState>) => {
    checkboxProps: {
        checked: boolean;
        onCheckedChange: (value: boolean) => void;
    };
};

export { BulletedListPlugin, ListItemContentPlugin, ListItemPlugin, ListPlugin, NumberedListPlugin, TaskListPlugin, TodoListPlugin, useListToolbarButton, useListToolbarButtonState, useTodoListElement, useTodoListElementState };
