import type { Context, ErrorInfo, JSX, ReactInstance } from 'react'; import type { Mark } from '@atlaskit/editor-prosemirror/model'; import type { EventHandlers } from '@atlaskit/editor-common/ui'; import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage'; import type { SmartLinksOptions } from '../../types/smartLinksOptions'; import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps'; import type { RendererAppearance } from '../../ui/Renderer/types'; import type { AnalyticsEventPayload } from '../../analytics/events'; import type { Diff } from '@atlaskit/editor-common/utils'; export interface InlineCardProps extends MarkDataAttributes { data?: object; eventHandlers?: EventHandlers; fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void; marks?: Mark[]; onSetLinkTarget?: (url: string) => '_blank' | undefined; portal?: HTMLElement; rendererAppearance?: RendererAppearance; smartLinks?: SmartLinksOptions; url?: string; } declare const _default_1: { new (props: Diff): { componentDidCatch?: (error: Error, errorInfo: ErrorInfo) => void; componentDidMount?: () => void; componentDidUpdate?: (prevProps: Readonly>, prevState: Readonly<{}>, snapshot?: any) => void; componentWillMount?: () => void; componentWillReceiveProps?: (nextProps: Readonly>, nextContext: any) => void; componentWillUnmount?: () => void; componentWillUpdate?: (nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any) => void; context: unknown; forceUpdate: (callback?: (() => void) | undefined) => void; getSnapshotBeforeUpdate?: (prevProps: Readonly>, prevState: Readonly<{}>) => any; readonly props: Readonly>; refs: { [key: string]: ReactInstance; }; render: () => JSX.Element; setState: (state: {} | ((prevState: Readonly<{}>, props: Readonly>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void; shouldComponentUpdate?: (nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any) => boolean; state: Readonly<{}>; UNSAFE_componentWillMount?: () => void; UNSAFE_componentWillReceiveProps?: (nextProps: Readonly>, nextContext: any) => void; UNSAFE_componentWillUpdate?: (nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any) => void; }; new (props: Diff, context: any): { componentDidCatch?: (error: Error, errorInfo: ErrorInfo) => void; componentDidMount?: () => void; componentDidUpdate?: (prevProps: Readonly>, prevState: Readonly<{}>, snapshot?: any) => void; componentWillMount?: () => void; componentWillReceiveProps?: (nextProps: Readonly>, nextContext: any) => void; componentWillUnmount?: () => void; componentWillUpdate?: (nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any) => void; context: unknown; forceUpdate: (callback?: (() => void) | undefined) => void; getSnapshotBeforeUpdate?: (prevProps: Readonly>, prevState: Readonly<{}>) => any; readonly props: Readonly>; refs: { [key: string]: ReactInstance; }; render: () => JSX.Element; setState: (state: {} | ((prevState: Readonly<{}>, props: Readonly>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void; shouldComponentUpdate?: (nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any) => boolean; state: Readonly<{}>; UNSAFE_componentWillMount?: () => void; UNSAFE_componentWillReceiveProps?: (nextProps: Readonly>, nextContext: any) => void; UNSAFE_componentWillUpdate?: (nextProps: Readonly>, nextState: Readonly<{}>, nextContext: any) => void; }; contextType?: Context | undefined; }; export default _default_1;