import { ExtensionProvider } from '@uidu/editor-common';
import { Node as PmNode } from 'prosemirror-model';
import { EditorView } from 'prosemirror-view';
import React from 'react';
export interface Props {
    node: PmNode;
    view: EditorView;
    extensionProvider?: ExtensionProvider;
    handleContentDOMRef: (node: HTMLElement | null) => void;
    onSelectExtension: (hasBody: boolean) => void;
    children?: React.ReactNode;
}
declare const _default: {
    new (props: unknown): {
        overflowContainer?: HTMLElement;
        container?: HTMLElement;
        scrollable?: NodeList;
        diff?: number;
        state: {
            showLeftShadow: boolean;
            showRightShadow: boolean;
        };
        componentWillUnmount(): void;
        componentDidUpdate(): void;
        handleScroll: (event: Event) => void;
        updateRightShadow: () => void;
        handleUpdateRightShadow: any;
        handleScrollDebounced: any;
        calcOverflowDiff: () => number;
        calcScrollableWidth: () => number;
        handleContainer: (container: HTMLElement) => void;
        render(): React.JSX.Element;
        context: unknown;
        setState<K extends keyof import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>(state: import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState | ((prevState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, props: Readonly<unknown>) => import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState | Pick<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState, K>) | Pick<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState, K>, callback?: () => void): void;
        forceUpdate(callback?: () => void): void;
        readonly props: Readonly<unknown>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, nextContext: any): boolean;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<unknown>, prevState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>): any;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<unknown>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<unknown>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, nextContext: any): void;
    };
    new (props: unknown, context: any): {
        overflowContainer?: HTMLElement;
        container?: HTMLElement;
        scrollable?: NodeList;
        diff?: number;
        state: {
            showLeftShadow: boolean;
            showRightShadow: boolean;
        };
        componentWillUnmount(): void;
        componentDidUpdate(): void;
        handleScroll: (event: Event) => void;
        updateRightShadow: () => void;
        handleUpdateRightShadow: any;
        handleScrollDebounced: any;
        calcOverflowDiff: () => number;
        calcScrollableWidth: () => number;
        handleContainer: (container: HTMLElement) => void;
        render(): React.JSX.Element;
        context: unknown;
        setState<K extends keyof import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>(state: import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState | ((prevState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, props: Readonly<unknown>) => import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState | Pick<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState, K>) | Pick<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState, K>, callback?: () => void): void;
        forceUpdate(callback?: () => void): void;
        readonly props: Readonly<unknown>;
        refs: {
            [key: string]: React.ReactInstance;
        };
        componentDidMount?(): void;
        shouldComponentUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, nextContext: any): boolean;
        componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
        getSnapshotBeforeUpdate?(prevProps: Readonly<unknown>, prevState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>): any;
        componentWillMount?(): void;
        UNSAFE_componentWillMount?(): void;
        componentWillReceiveProps?(nextProps: Readonly<unknown>, nextContext: any): void;
        UNSAFE_componentWillReceiveProps?(nextProps: Readonly<unknown>, nextContext: any): void;
        componentWillUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, nextContext: any): void;
        UNSAFE_componentWillUpdate?(nextProps: Readonly<unknown>, nextState: Readonly<import("@uidu/editor-common/src/ui/OverflowShadow").OverflowShadowState>, nextContext: any): void;
    };
    contextType?: React.Context<any>;
};
export default _default;
