///
import { RedactorComponentProps } from '../../../../..';
export declare type ContentEditorToolbarButton = {
key?: string | number | undefined;
name: string;
title: string;
disabled: boolean;
icon: JSX.Element;
color?: 'default' | 'inherit' | 'primary' | 'secondary' | undefined;
onClick?: () => boolean;
className?: string;
};
export declare type ToolbarButtonProps = {
name: string;
title: string;
disabled: boolean;
icon: JSX.Element;
onClick?: (event: MouseEvent) => void;
className?: string;
};
export declare type WorkTag = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
export declare const FunctionComponent = 0;
export declare const ClassComponent = 1;
export declare const IndeterminateComponent = 2;
export declare const HostRoot = 3;
export declare const HostPortal = 4;
export declare const HostComponent = 5;
export declare const HostText = 6;
export declare const Fragment = 7;
export declare const Mode = 8;
export declare const ContextConsumer = 9;
export declare const ContextProvider = 10;
export declare const ForwardRef = 11;
export declare const Profiler = 12;
export declare const SuspenseComponent = 13;
export declare const MemoComponent = 14;
export declare const SimpleMemoComponent = 15;
export declare const LazyComponent = 16;
export declare const IncompleteClassComponent = 17;
export declare const DehydratedFragment = 18;
export declare const SuspenseListComponent = 19;
export declare const ScopeComponent = 21;
export declare const OffscreenComponent = 22;
export declare const LegacyHiddenComponent = 23;
export declare const CacheComponent = 24;
export declare type ReactFiber = {
pendingProps: {
object?: RedactorComponentProps['object'];
parent?: RedactorComponentProps['object'];
updateObject?: RedactorComponentProps['updateObject'];
updateParent?: RedactorComponentProps['updateParent'];
} | undefined;
/**
* parent
*/
return?: ReactFiber;
child?: ReactFiber;
/**
* Renderer
*/
type?: Function;
tag: WorkTag;
};
export interface ContentEditorToolbarProps {
closestInSelection: (selector: string) => E | null;
contentEditableContainer: HTMLElement | null;
activeSetter: React.Dispatch>;
}