import { LitElement, nothing } from 'lit'; import { FileType } from '../types/files.types'; import { ShadowPartsController } from '../controllers/shadow-parts-controller'; declare global { interface HTMLElementTagNameMap { "wy-file-view-embed": WyFileViewEmbed; } } /** * Lightweight preview wrapper for embedded content. * * **Used sub components:** * * - [``](./ui/wy-progress-circular.ts) * - [``](./wy-file-view-icon.ts) * * @csspart wy-content-embed - Object/embed container for the preview. * @csspart wy-content-progress - Progress indicator shown while loading. * @csspart wy-content-embed-fallback - Fallback view shown when embed cannot load. * * @fires {FilePreviewLoadedEventType} file-preview-loaded - The file preview is considered loaded. */ export declare class WyFileViewEmbed extends LitElement { static styles: import('lit').CSSResult[]; protected exportParts: ShadowPartsController; /** * Source file. */ file?: FileType; /** * Cached reference to the active embed element. * * @internal */ embedElement?: Element; /** * Emit `file-preview-loaded` once the preview has finished loading. * * @returns {boolean} True if the event was not canceled. */ protected dispatchLoaded(): boolean; /** * Tear-down callback for the current embed load handler. * * @internal */ unregisterLoading?: () => void; /** * Attach load listeners and register the provided embed element. * * @internal * @param embedElement - Newly rendered embed element. */ registerLoading(embedElement: Element | undefined): void; render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing; disconnectedCallback(): void; } //# sourceMappingURL=wy-file-view-embed.d.ts.map