import { TemplateResult as TemplateResult$1 } from "../node_modules/lit-html/development/lit-html.js"; import { FrameRenderable, FrameState } from "../preview/FrameController.js"; import { EFSourceMixinInterface } from "./EFSourceMixin.js"; import { TemporalMixinInterface } from "./EFTemporal.js"; import { FetchMixinInterface } from "./FetchMixin.js"; import { Ref } from "../node_modules/lit-html/development/directives/ref.js"; import * as _$lit from "lit"; import { LitElement, PropertyValueMap } from "lit"; //#region src/elements/EFImage.d.ts declare const EFImage_base: (new (...args: any[]) => TemporalMixinInterface) & (new (...args: any[]) => EFSourceMixinInterface) & (new (...args: any[]) => FetchMixinInterface) & typeof LitElement; declare class EFImage extends EFImage_base implements FrameRenderable { #private; static styles: _$lit.CSSResult[]; static get observedAttributes(): string[]; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; imageRef: Ref; canvasRef: Ref; /** * Get the current render version. * Version increments when src or fileId changes. * @public */ get renderVersion(): number; /** * Get whether the image has an alpha channel. * Used to determine if we should encode as PNG (alpha) or JPEG (no alpha). * @public */ get hasAlpha(): boolean; set fileId(value: string | null); get fileId(): string | null; /** @deprecated Use fileId instead */ get assetId(): string | null; set assetId(value: string | null); render(): TemplateResult$1<1>; private isDirectUrl; assetPath(): string; get hasOwnDuration(): boolean; shouldAutoReady(): boolean; /** * Load image from the configured source */ loadImage(signal?: AbortSignal): Promise; /** * Query readiness state for a given time. * @implements FrameRenderable */ getFrameState(_timeMs: number): FrameState; /** * Async preparation - waits for image to load. * @implements FrameRenderable */ prepareFrame(_timeMs: number, signal: AbortSignal): Promise; /** * Synchronous render - image is already displayed via img element or canvas. * @implements FrameRenderable */ renderFrame(_timeMs: number): void; protected updated(changedProperties: PropertyValueMap | Map): void; disconnectedCallback(): void; /** * Get the natural dimensions of the image. * Returns null if the image hasn't loaded yet. * * @public */ getNaturalDimensions(): { width: number; height: number; } | null; } declare global { interface HTMLElementTagNameMap { "ef-image": EFImage; } } //#endregion export { EFImage }; //# sourceMappingURL=EFImage.d.ts.map