import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { Disposable, IDisposable, IReference } from "../../../../../base/common/lifecycle.js"; export declare const chatWorkingLogoAtlasFrameCount = 320; export interface IChatWorkingLogoAtlasOptions { /** Native pixel dimensions, excluding the two-pixel padding around each tile. */ readonly width: number; readonly height: number; readonly color: string; } export interface IChatWorkingLogoAtlas extends IDisposable { readonly url: string; readonly width: number; readonly height: number; readonly frameWidth: number; readonly frameHeight: number; /** The encoded sheet, which lets the window retain its own copy after the generating owners release it. */ readonly blob?: Blob; } type AtlasFactory = (targetWindow: Window, options: IChatWorkingLogoAtlasOptions, token: CancellationToken) => Promise; /** Shares in-flight and decoded atlases, evicting unused entries before exceeding the pixel budget. */ export declare class ChatWorkingLogoAtlasCache extends Disposable { private readonly targetWindow; private readonly factory; private readonly entries; private bytes; constructor(targetWindow: Window, factory?: AtlasFactory); /** Whether an atlas for these options is ready or already being generated, so acquiring it adds no generation work. */ has(options: IChatWorkingLogoAtlasOptions): boolean; acquire(options: IChatWorkingLogoAtlasOptions): IReference>; private remove; } /** * Acquires the window's atlas for the given options. Retained sheets are returned immediately; otherwise * indicators share one generation, which stops when no indicator needs it and is retained when it completes. */ export declare function acquireChatWorkingLogoAtlas(targetWindow: Window, options: IChatWorkingLogoAtlasOptions): IReference>; /** Whether the window has a retained or in-flight atlas for these options, so acquiring it adds no generation work. */ export declare function hasChatWorkingLogoAtlas(targetWindow: Window, options: IChatWorkingLogoAtlasOptions): boolean; export declare function loadChatWorkingLogoAtlasImage(image: HTMLImageElement, url: string, token: CancellationToken): Promise; /** Rasterizes padded, native-resolution tiles in yielding batches; playback never uses this path. */ export declare function createChatWorkingLogoAtlas(targetWindow: Window, options: IChatWorkingLogoAtlasOptions, token: CancellationToken): Promise; export declare function getChatWorkingLogoAtlasKeyframes(atlas: IChatWorkingLogoAtlas, width: number, height: number): Keyframe[]; export {};