import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IAccessibilityService } from "../../../../../platform/accessibility/common/accessibility.service.js"; import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js"; import { IThemeService } from "../../../../../platform/theme/common/themeService.service.js"; import { GlyphSurface } from "./chatImageGlyphSurface.js"; export interface IChatImageRevealOrigin { readonly container: HTMLElement; /** Side of the loading square that the image grows from, in CSS pixels, when it is known. */ readonly size?: number; /** Transfers ownership of the painted loading surface to the reveal. */ readonly takeSurface?: () => GlyphSurface | undefined; } /** Expands the loading glyph square into the generated image as soon as its bytes are ready. */ export declare class ChatImageReveal extends Disposable { private readonly container; private readonly image; private readonly origin; private readonly accessibilityService; private readonly themeService; private readonly effects; private readonly surface; private started; constructor(container: HTMLElement, image: HTMLImageElement, origin: IChatImageRevealOrigin | undefined, accessibilityService: IAccessibilityService, themeService: IThemeService, instantiationService: IInstantiationService); reveal(loadedAt?: number): void; private revealTexture; private get motionEnabled(); private finishIfMotionDisabled; }