import { PropsWithChildren } from 'react'; import { LabelProps } from '@patternfly/react-core'; export interface FileDetailsLabelProps extends Omit { /** Name of file, including extension */ fileName: string; /** Unique id of file */ fileId?: string | number; /** Whether to display loading icon */ isLoading?: boolean; /** Callback function for when label is clicked */ onClick?: (event: React.MouseEvent, fileName: string, fileId?: string | number) => void; /** Callback function for when close button is clicked */ onClose?: (event: React.MouseEvent, fileName: string, fileId?: string | number) => void; /** Aria label for close button */ closeButtonAriaLabel?: string; /** Custom test id for the component-generated language */ languageTestId?: string; /** Custom test id for the loading spinner in the component */ spinnerTestId?: string; /** File size */ fileSize?: string; /** Whether to truncate file name */ hasTruncation?: boolean; /** Icon used for close button */ closeButtonIcon?: React.ReactNode; } export declare const FileDetailsLabel: ({ fileName, fileId, isLoading, onClick, onClose, closeButtonAriaLabel, languageTestId, spinnerTestId, fileSize, hasTruncation, closeButtonIcon, ...props }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element; export default FileDetailsLabel;