/** * @jsxRuntime classic * @jsx jsx */ import React from 'react'; import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { RendererContext, ExtensionViewportSize } from '../types'; import type { ExtensionLayout } from '@atlaskit/adf-schema'; import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions'; import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory'; import type { OverflowShadowProps, OverflowShadowState, ShadowObserver } from '@atlaskit/editor-common/ui'; import type { RendererAppearance } from '../../ui/Renderer/types'; interface Props { extensionHandlers?: ExtensionHandlers; extensionKey: string; extensionType: string; extensionViewportSizes?: ExtensionViewportSize[]; isInsideOfInlineExtension?: boolean; layout?: ExtensionLayout; localId?: string; marks?: PMMark[]; nodeHeight?: string; parameters?: any; path?: PMNode[]; providers: ProviderFactory; rendererAppearance?: RendererAppearance; rendererContext: RendererContext; shouldDisplayExtensionAsInline?: (extensionParams?: ExtensionParams) => boolean; text?: string; } type AllOrNone = T | { [K in keyof T]?: never; }; type RenderExtensionOptions = { isTopLevel?: boolean; rendererAppearance?: RendererAppearance; } & AllOrNone; export declare const renderExtension: (content: any, layout: ExtensionLayout, options?: RenderExtensionOptions, removeOverflow?: boolean, extensionId?: string, extensionViewportSizes?: ExtensionViewportSize[], nodeHeight?: string, localId?: string, shouldDisplayExtensionAsInline?: (extensionParams?: ExtensionParams) => boolean, node?: ExtensionParams, isInsideOfInlineExtension?: boolean) => React.JSX.Element; declare const _default_1: { new (props: Props & OverflowShadowProps): { calcOverflowDiff: () => number; calcScrollableWidth: () => number; componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void; componentDidMount?: () => void; componentDidUpdate: () => void; componentWillMount?: () => void; componentWillReceiveProps?: (nextProps: Readonly, nextContext: any) => void; componentWillUnmount: () => void; componentWillUpdate?: (nextProps: Readonly, nextState: Readonly, nextContext: any) => void; container?: HTMLElement; context: unknown; diff?: number; forceUpdate: (callback?: (() => void) | undefined) => void; getSnapshotBeforeUpdate?: (prevProps: Readonly, prevState: Readonly) => any; handleContainer: (container: HTMLElement | null) => void; handleScroll: (event: Event) => void; initShadowObserver: () => void; overflowContainer?: HTMLElement | null; overflowContainerWidth: number; readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; render: () => React.JSX.Element; scrollable?: NodeList; setState: (state: OverflowShadowState | ((prevState: Readonly, props: Readonly) => OverflowShadowState | Pick | null) | Pick | null, callback?: (() => void) | undefined) => void; shadowObserver?: ShadowObserver; shouldComponentUpdate?: (nextProps: Readonly, nextState: Readonly, nextContext: any) => boolean; showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean; state: { showLeftShadow: boolean; showRightShadow: boolean; }; UNSAFE_componentWillMount?: () => void; UNSAFE_componentWillReceiveProps?: (nextProps: Readonly, nextContext: any) => void; UNSAFE_componentWillUpdate?: (nextProps: Readonly, nextState: Readonly, nextContext: any) => void; updateShadows: () => void; }; new (props: Props & OverflowShadowProps, context: any): { calcOverflowDiff: () => number; calcScrollableWidth: () => number; componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void; componentDidMount?: () => void; componentDidUpdate: () => void; componentWillMount?: () => void; componentWillReceiveProps?: (nextProps: Readonly, nextContext: any) => void; componentWillUnmount: () => void; componentWillUpdate?: (nextProps: Readonly, nextState: Readonly, nextContext: any) => void; container?: HTMLElement; context: unknown; diff?: number; forceUpdate: (callback?: (() => void) | undefined) => void; getSnapshotBeforeUpdate?: (prevProps: Readonly, prevState: Readonly) => any; handleContainer: (container: HTMLElement | null) => void; handleScroll: (event: Event) => void; initShadowObserver: () => void; overflowContainer?: HTMLElement | null; overflowContainerWidth: number; readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; render: () => React.JSX.Element; scrollable?: NodeList; setState: (state: OverflowShadowState | ((prevState: Readonly, props: Readonly) => OverflowShadowState | Pick | null) | Pick | null, callback?: (() => void) | undefined) => void; shadowObserver?: ShadowObserver; shouldComponentUpdate?: (nextProps: Readonly, nextState: Readonly, nextContext: any) => boolean; showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean; state: { showLeftShadow: boolean; showRightShadow: boolean; }; UNSAFE_componentWillMount?: () => void; UNSAFE_componentWillReceiveProps?: (nextProps: Readonly, nextContext: any) => void; UNSAFE_componentWillUpdate?: (nextProps: Readonly, nextState: Readonly, nextContext: any) => void; updateShadows: () => void; }; contextType?: React.Context | undefined; }; export default _default_1;