import React from 'react'; import type { MediaClient } from '@atlaskit/media-client/media-client'; import type { MediaTraceContext } from '@atlaskit/media-common/analytics/types'; import type { FileState } from '@atlaskit/media-state/file-state'; import type { Outcome } from '../domain/outcome'; import type { MediaViewerError } from '../MediaViewerError'; export type BaseProps = { mediaClient: MediaClient; item: FileState; collectionName?: string; traceContext: MediaTraceContext; }; export type BaseState = { content: Outcome; }; export declare abstract class BaseViewer = BaseState> extends React.Component { state: State; protected mounted: boolean; componentDidMount(): void; componentWillUnmount(): void; protected safeSetState(newState: Partial): void; componentDidUpdate(prevProps: Props): void; render(): React.JSX.Element; private getInitialState; private renderDownloadButton; protected onMediaDisplayed: () => void; protected needsReset(propsA: Props, propsB: Props): boolean; protected abstract init(): void; protected abstract release(): void; protected abstract get initialState(): State; protected abstract renderSuccessful(content: Content): React.ReactNode; }