import { EventEmitter } from '../../stencil-public-runtime'; import { ExtensionSuffixType } from "../../type/file-types"; import { MdsFileEventDetail } from './meta/event-detail'; /** * @category content */ export declare class MdsFile { private host; private t; private wasDownloaded; private km; /** * Overrides the automatic filetype recongition by forcing the suffix to one of the available formats choosen */ readonly suffix?: ExtensionSuffixType; /** * Overrides the default filetype description */ readonly description?: string; /** * The filename shown as component title, is used to auto assign one of the filetype known in the filetype dictionary */ readonly filename: string; /** * The image preview src if available of a file, useful if you have a logo to display, or a smaller version of a bigger image */ readonly preview?: string; /** * Hides the download icon */ readonly hideDownloadedIcon?: boolean; /** * The kind of file, recognised from the extension of `filename` or from `suffix`: it selects * the colours of the icon. The component writes it on load and whenever `filename` changes, * set `suffix` to choose it */ format?: string; /** * Emits when the component is clicked, returning file infos */ downloadedEvent: EventEmitter; private handleOnClick; /** * The localStorage key that records the download of the filename: `mdsFile/` plus a short hash * of the name, so the key stays short and uniform whatever the name holds. A plain hash, not a * digest: the key is no security measure. */ private downloadedStorageKey; private checkWasDownloaded; private getDefaultDescription; componentWillLoad(): void; componentDidLoad(): void; connectedCallback(): void; disconnectedCallback(): void; handleFilename(newValue: string): void; render(): any; }