import React from 'react';
import { type MediaViewerProps } from './MediaViewer.models';
import { PlayerReference } from 'video-react';
export type PlayerProps = PlayerReference;
type FilePlayerProps = {
    setIsPlaying: React.Dispatch<React.SetStateAction<string>>;
    isPlaying: MediaViewerProps['file']['name'];
    setPlayerRef: React.Dispatch<React.SetStateAction<PlayerReference | null>>;
    playableFile: {
        isPlayable: string | undefined;
        fileType: string;
    };
};
type MediaViewerPreviewOtherProps = {
    file: MediaViewerProps['file'];
    previewDimensions: {
        width: number;
        height: number;
    };
    playerProps?: never;
};
type MediaViewerPreviewPlayerProps = {
    file: MediaViewerProps['file'];
    previewDimensions: {
        width: number;
        height: number;
    };
    playerProps: FilePlayerProps;
};
type MediaViewerPreviewProps = MediaViewerPreviewOtherProps | MediaViewerPreviewPlayerProps;
declare const MediaViewerPreview: ({ file, previewDimensions, playerProps, }: MediaViewerPreviewProps) => JSX.Element;
export default MediaViewerPreview;
