import { EventEmitter } from "../../stencil-public-runtime"; import { ThemeableComponent } from "../../common"; import { DuetTheme } from "../../common-types"; import { DuetLangObject } from "../../utils/language-utils"; import { DuetFileListItem, DuetUploadEvent } from "../duet-upload/duet-upload"; import { DuetUploadErrorCode } from "../duet-upload/errorcodes.utils"; export type ItemType = "pending" | "inprogress" | "failure" | "success"; export type UploadActionButtonTitles = { [actionName: string]: DuetLangObject | boolean; }; /** * @internal * This component is for internal use. */ export declare class DuetUploadItem implements ThemeableComponent { element: HTMLElement; /** * theme. */ theme: DuetTheme; /** * data. */ data: DuetFileListItem; /** * type. */ type: ItemType; /** * showLinks. */ showLinks: boolean; /** * actions. */ actions: any; /** * buttonTitles. */ buttonTitles: UploadActionButtonTitles; /** * label. */ label?: DuetLangObject; /** * categoryLabel. */ categoryLabel?: DuetLangObject; /** * errorCodes. */ errorCodes?: DuetUploadErrorCode[]; /** * showCategory. */ showCategory?: boolean; /** * linkClickEvent. */ linkClickEvent?: EventEmitter; private actionButton?; /** * Component lifecycle events. */ componentWillLoad(): void; /** * focusActionButton. */ focusActionButton(): Promise; private fileUploadingInfo; private onLinkClick; private getFileNameLine; private getActionButtonTitle; render(): any; }