/** * @jsxRuntime classic * @jsx jsx */ import { type ForwardRefExoticComponent, type ReactNode, type RefAttributes } from 'react'; import type { SupportedLanguages } from '@atlaskit/code/constants'; import type { ErrorFileState, FileState } from '@atlaskit/media-state/file-state'; import type { Outcome } from '../../domain/outcome'; import type { MediaViewerError } from '../../MediaViewerError'; export declare const MAX_FORMATTED_LINES: any; export declare const MAX_FILE_SIZE_USE_CODE_VIEWER: any; export declare const CodeViewWrapper: ForwardRefExoticComponent<{ children: ReactNode; 'data-testid': string | undefined; } & RefAttributes>; export type Props = { item: Exclude; src: string; language: SupportedLanguages; testId?: string; onClose?: () => void; onSuccess?: () => void; onError?: (error: MediaViewerError) => void; }; export type State = { doc: Outcome; };