import type { KeyboardEvent, MouseEvent } from "react"; import { type ProgressBarProps } from "../ProgressBar"; interface Tag { id: string; name: string; } interface MediaCardProps { "aria-label"?: string; url: string; filename: string; filenameHighlight?: string; alt?: string; /** * The file extension of the media * @example "png" */ extension?: string; kind?: string; tags?: Tag[]; onAddTag?: () => void; width?: number; height?: number; selected?: boolean; loading?: boolean; /** * The upload status of the media * @default idle */ status?: MediaProgressStatus; /** * The size of the media in bytes */ size?: number; /** * Function called when the card is clicked * @description This only affects the card, not the checkbox */ onCardClick?: (event: MouseEvent | KeyboardEvent) => void; /** * Function called when the checkbox is clicked * @description This only affects the checkbox, not the card * @param checked - The new checked state of the checkbox * @param event - The Mouse / Keyboard event */ onCheckedChange?: (checked: boolean, event: MouseEvent | KeyboardEvent) => void; /** * Function called when Add a tag is clicked * @description This only affects the Add a tag button, not the card */ onAddTagClick?: () => void; } export declare function MediaCard(props: MediaCardProps): JSX.Element; interface MediaCardPlaceholderProps { filename: string; kind?: string; } export declare function MediaCardPlaceholder(props: MediaCardPlaceholderProps): JSX.Element; type MediaProgressStatus = "idle" | "uploading" | "success" | "error"; /** * Matches Media Loading status to ProgressBar props */ export declare function getProgressPropsFromMediaStatus(status: MediaProgressStatus): ProgressBarProps; export {};