import { nothing } from 'lit'; import { FileType } from '../types/files.types'; import { ShadowPartsController } from '../controllers/shadow-parts-controller'; import { WeavySubAppComponent } from '../classes/weavy-sub-app-component'; declare global { interface HTMLElementTagNameMap { "wy-file-title": WyFileTitle; } } /** * File list item showing file icon, name and actions. * * **Used sub components:** * * - [``](./wy-file-item.ts) * - [``](./wy-file-draft-badge.ts) * * @slot title - Custom title content for the item. * @slot actions - Actions slot (e.g. buttons / menus). * * @fires {FileEditEventType} edit - Emitted when file edit mode change is requested. * @fires {FileEditNameEventType} edit-name - Emitted when rename mode is activated. * @fires {FileRenameEventType} rename - Emitted when a file is renamed. */ export declare class WyFileTitle extends WeavySubAppComponent { static styles: import('lit').CSSResult[]; /** @internal */ protected exportParts: ShadowPartsController; /** * File data displayed in the list item. */ file?: FileType; /** * Indicates if edit name mode is available. * * @attr */ hasEditName: boolean; /** * Puts the current file in edit mode if available. * * @attr */ editName: boolean; /** * Render the item with rounded corners. */ rounded: boolean; /** * Whether the unsaved draft of the file is shown or edited. A "Draft" badge is then displayed next to the name * once a draft exists, so the title says what is on screen rather than only hinting at unsaved changes. */ draft: boolean; /** * Emit an `edit-name` event to enter rename mode for the given file. * * @param file - File that should be renamed. * @returns Whether the event was not canceled. */ dispatchEditName(file: FileType, editName: boolean): boolean; /** * Emit a `rename` event containing the updated file name. * * @param file - File being renamed. * @param name - New filename. * @returns Whether the event was not canceled. */ dispatchRename(file: FileType, name: string): boolean; render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1> | typeof nothing; } //# sourceMappingURL=wy-file-title.d.ts.map