import { LitElement, PropertyValueMap } from 'lit';
import { WeavyType } from '../contexts/weavy-context';
import { ShadowPartsController } from '../controllers/shadow-parts-controller';
declare global {
    interface HTMLElementTagNameMap {
        "wy-preview-text": WyPreviewText;
    }
}
/**
 * Text / code / HTML preview component used in file previews.
 *
 * **Used sub components:**
 *
 * - [`<wy-empty>`](./wy-empty.ts)
 * - [`<wy-progress-circular>`](./ui/wy-progress-circular.ts)
 * - [`<wy-container>`](./ui/wy-container.ts)
 *
 * @csspart wy-content-progress - Progress indicator shown while loading.
 * @csspart wy-content-code - Container for rendered code content.
 * @csspart wy-code - Modifier for code styling.
 * @csspart wy-document - Document wrapper used for HTML/text rendering.
 * @csspart wy-content-html - Container for rendered HTML.
 * @csspart wy-content-text - Container for plain text content.
 *
 * @fires {FilePreviewLoadedEventType} file-preview-loaded - The file preview is considered loaded.
 */
export declare class WyPreviewText extends LitElement {
    static styles: import('lit').CSSResult[];
    protected exportParts: ShadowPartsController;
    /**
     * Consumed Weavy client instance used for authenticated fetches.
     *
     * @internal
     */
    weavy?: WeavyType;
    /**
     * Source URL of the text asset to preview.
     */
    src: string;
    /**
     * Render the response as HTML.
     */
    html: boolean;
    /**
     * Apply code styling when rendering text or HTML.
     */
    code: boolean;
    /**
     * Cached string content produced by the latest fetch.
     *
     * @internal
     */
    textOrHtmlContent: string;
    /**
     * Loading indicator flag while fetching preview content.
     *
     * @internal
     */
    loading: boolean;
    /**
     * Dispatches the `file-preview-loaded` event when content becomes available.
     *
     * @internal
     * @returns {boolean} `true` if the event was not canceled.
     */
    protected dispatchLoaded(): boolean;
    updated(changedProperties: PropertyValueMap<this>): void;
    render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1>;
}
//# sourceMappingURL=wy-preview-text.d.ts.map