import { IDisposable } from "../../../common/lifecycle.js"; export interface IPixelSpinnerOptions { /** * Accessible label for the spinner. When provided, the spinner is given * `role="status"` and `aria-label` so screen readers announce a busy state. * When omitted (the default), the spinner is purely decorative and is marked * `aria-hidden="true"` — appropriate when a surrounding element already * conveys the busy state. */ readonly ariaLabel?: string; /** * Visual variant of the spinner. * - `'grid'` (default): six dots in a 2×3 grid that cascade vertically. * - `'ring'`: six dots arranged in a circle with a highlight that orbits the ring. */ readonly variant?: "grid" | "ring"; } export interface IPixelSpinner extends IDisposable { readonly element: HTMLElement; } /** * Creates a small pixel-art style spinner. Color is driven by `currentColor`, * so consumers can control the visual color via the parent element's `color` * style or by setting `style.color` directly on the returned element. * * Respects `prefers-reduced-motion` by disabling the animation. * * @param parent Optional parent to append the spinner to. * @param options Optional spinner configuration. * @returns The spinner and its root element. */ export declare function createPixelSpinner(parent?: HTMLElement, options?: IPixelSpinnerOptions): IPixelSpinner;