import { LitElement, nothing } from 'lit'; import { FileType, FileEditableProps } from '../types/files.types'; import { ShadowPartsController } from '../controllers/shadow-parts-controller'; import { Ref } from 'lit/directives/ref.js'; import { FocusProps } from '../types/component.types'; declare global { interface HTMLElementTagNameMap { "wy-file-view": WyFileView; } } /** * Preview item that selects and renders the appropriate preview component for a file. * Renders a child preview component depending on format and metadata. * * **Used sub components:** * * - [``](./wy-file-view-image.ts) * - [``](./wy-pdf-viewer.ts) * - [``](./wy-file-view-media.ts) * - [``](./wy-file-view-text.ts) * - [``](./wy-file-view-embed.ts) * - [``](./wy-file-view-icon.ts) * * @fires {FilePreviewLoadedEventType} file-preview-loaded - The file preview is considered loaded. */ export declare class WyFileView extends LitElement implements FileEditableProps { static styles: import('lit').CSSResult[]; protected exportParts: ShadowPartsController; /** * File metadata that determines which preview renderer to display. * * @internal */ file?: FileType; /** * Edit file if edit mode is available. */ edit: boolean; /** * Show the unsaved draft of the file instead of its stored content (text files only). */ draft: boolean; /** * Indicates whether this preview item is the currently visible entry. * * @internal */ current: boolean; /** * Saves the current edit. */ save(): Promise; setFocus(): void; /** * Reference to currently showing view. * * @internal */ protected viewRef: Ref; /** * Emits the `file-preview-loaded` event when the preview has finished loading. * * @internal * @returns {boolean} `true` if the event was not canceled. */ dispatchLoaded(): boolean; render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing; } //# sourceMappingURL=wy-file-view.d.ts.map