import type { CSSResultGroup, PropertyValues } from 'lit'; import DSAIcon from '../icon/icon'; import { ShoelaceElement } from '../../internal/shoelace-element'; /** * @summary Download cards allow user to download a document. * @documentation https://dsa.service-public-autonomie.fr/latest/librairie-webcomponents/telechargement-de-fichier-s-file-download/carte-de-telechargement-download-card/web-JsBAkuby * * @dependency dsa-icon * * @slot - The card's label. * @slot image - An optional image to render at the start of the card.. * * @event dsa-blur - Emitted when the card loses focus. * @event dsa-focus - Emitted when the card gains focus. * */ export default class DSADownloadCard extends ShoelaceElement { static styles: CSSResultGroup; static dependencies: { 'dsa-icon': typeof DSAIcon; }; /** The href of the document */ href: string; /** Optional description of the file */ description?: string; /** The document format */ format: string; /** The document size */ documentSize: string; /** The name of the downloaded file */ filename: string; private cachedDocumentInfo; protected willUpdate(changedProperties: PropertyValues): void; private handleFocus; private handleBlur; render(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'dsa-download-card': DSADownloadCard; } }