import { type Accessor } from "solid-js"; /** * Image-loading status reported by `` into the root context so * that `` can decide whether to render. * * - `idle` — no image mounted yet (or src is absent) * - `loading` — a real image has been attached and is fetching * - `loaded` — the image's `onload` fired; the image is visible * - `error` — the image's `onerror` fired (or src was empty) */ export type ImageLoadingStatus = "idle" | "loading" | "loaded" | "error"; export interface AvatarRootContextValue { /** Reactive accessor for the current image-loading status. */ imageLoadingStatus: Accessor; /** Setter invoked by `` on each load/error transition. */ setImageLoadingStatus: (next: ImageLoadingStatus) => void; } /** * Avatar root context. `createContext(null)` + `== null` sentinel * — Solid 2's `useContext` throws `ContextNotFoundError` when * the default is `undefined`, which would shadow the intended Base UI error * message below. */ export declare const AvatarRootContext: import("solid-js").Context; /** * Read the `` context. Throws a descriptive error if the caller * forgot to wrap their subtree in `` — matches Base UI React. */ export declare function useAvatarRootContext(): AvatarRootContextValue; //# sourceMappingURL=avatar-root-context.d.ts.map