import { Component, TypeDefs } from 'intact-vue'; import type { Events } from '../types'; import type { ResolvedFileCardType } from './fileCardUtils'; import type { MediaMaskValue } from '../media'; import type { TooltipProps } from '../tooltip'; export type { ResolvedFileCardType } from './fileCardUtils'; export type FileCardType = 'file' | 'image' | 'video' | 'audio' | string; export type FileCardStatus = 'default' | 'loading' | 'error' | 'done'; export type FileCardSize = 'mini' | 'small' | 'default' | 'large'; export type FileCardLoadingVariant = 'default' | 'flow'; export type FileCardNativeProps = Record; export type FileCardValue = { name?: string; type?: FileCardType; resolvedType: ResolvedFileCardType; status: FileCardStatus; src?: string; poster?: string; width?: string | number; height?: string | number; description?: string; errorText?: string; loadingText?: string; byte?: number; percent?: number; size: FileCardSize; }; export type FileCardMaskValue = FileCardValue & { canPreview?: MediaMaskValue['canPreview']; preview?: MediaMaskValue['preview']; }; export interface FileCardProps { name?: string; type?: FileCardType; status?: FileCardStatus; src?: string; poster?: string; width?: string | number; height?: string | number; description?: string; errorText?: string; loadingText?: string; byte?: number; percent?: number; loadingVariant?: FileCardLoadingVariant; showPreview?: boolean; showNameTooltip?: boolean; nameTooltipProps?: TooltipProps; showDelIcon?: boolean; icon?: string; size?: FileCardSize; lazy?: boolean; imageProps?: FileCardNativeProps; videoProps?: FileCardNativeProps; audioProps?: FileCardNativeProps; } export interface FileCardEvents { click: [FileCardValue, MouseEvent]; preview: [FileCardValue, MouseEvent]; delete: [FileCardValue, MouseEvent]; } export interface FileCardBlocks { icon: null; loading: FileCardValue; description: null; mask: FileCardMaskValue; } export declare class FileCard extends Component { static template: string | import('intact-vue').Template; static typeDefs: Required>; static defaults: () => Partial; static events: Events; private config; private model; }