import { LitElement, type PropertyValues } from 'lit'; import type { LightTheme } from '../../types.js'; import '../discord-link/DiscordLink.js'; export declare class DiscordTextFileAttachmentPreviewer extends LitElement implements LightTheme { constructor(); /** * The name of the file * * @example * ```ts * 'example.txt' * ``` */ name: string; language: string; content: string; /** * The size of the file in bytes * * @remarks The unit is not automatically calculated, * you should provide it manually through {@link DiscordTextFileAttachmentPreviewer.bytesUnit | `bytesUnit`} * @example * ```ts * 1024 * ``` */ bytes: number; /** * The unit of the file in a human-readable format * * @example * ```ts * 'KB' * ``` */ bytesUnit: string; /** * The URL to the file, this is passed to `` * * @example * ```ts * 'https://example.com/example.txt' * ``` */ href: string; lightTheme: boolean; protected createRenderRoot(): this; private currentSearch; private handleSearchInput; private clearSearch; private selectLanguage; inputRef: import("lit/directives/ref.js").Ref; languageSelectorContainer: import("lit/directives/ref.js").Ref; languageSelectorButton: import("lit/directives/ref.js").Ref; private isLanguageSelectorVisible; showSelector(): void; hideSelector(): void; private popper; private isFirstClickDispatch; private removeHandleClickOutside; disconnectedCallback(): void; private handleClickOutside; updated(changed: PropertyValues): void; protected render(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'discord-text-file-attachment-previewer': DiscordTextFileAttachmentPreviewer; } } //# sourceMappingURL=DiscordTextFileAttachmentPreviewer.d.ts.map