import React from 'react'; import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents'; import type { Identifier } from '@atlaskit/media-client/identifier'; import type { MediaTraceContext } from '@atlaskit/media-common/analytics/types'; import type { MediaFeatureFlags } from '@atlaskit/media-common/types'; import type { FileState } from '@atlaskit/media-state/file-state'; import type { WithShowControlMethodProp } from '@atlaskit/media-ui/types'; import type { Outcome } from './domain/outcome'; import type { MediaViewerError } from './MediaViewerError'; import { type ViewerOptionsProps } from './viewerOptions'; export type Props = Readonly<{ identifier: Identifier; onClose?: () => void; previewCount: number; contextId?: string; featureFlags?: MediaFeatureFlags; viewerOptions?: ViewerOptionsProps; traceContext: MediaTraceContext; }> & WithAnalyticsEventsProps & WithShowControlMethodProp; export type FileItem = FileState | 'external-image'; export type State = Outcome; export declare const MAX_FILE_SIZE_SUPPORTED_BY_CODEVIEWER: number; export declare const ItemViewer: React.ForwardRefExoticComponent void; previewCount: number; contextId?: string; featureFlags?: MediaFeatureFlags; viewerOptions?: ViewerOptionsProps; traceContext: MediaTraceContext; }> & WithShowControlMethodProp, keyof WithAnalyticsEventsProps> & React.RefAttributes>;