import { createToaster } from '@chakra-ui/react/toast'; import { ToastPlacement } from '../toast.types'; /** Local alias to avoid exposing transitive @zag-js/toast types in declarations. */ type Toaster = ReturnType; /** * Reset all toaster instances back to their uninitialized state. * * Intended for test isolation only — calling this in production will * cause the next toast() call to recreate all toasters from scratch, * discarding any in-flight state. */ export declare function resetToasters(): void; /** * Whether toasters have been initialized (i.e., at least one toast was created). */ export declare function isToastersActive(): boolean; /** * Subscribe to toaster activation. The callback fires once when toasters * are first initialized. Returns an unsubscribe function. */ export declare function onToastersActivated(callback: () => void): () => void; /** * Get toaster for a specific placement. */ export declare function getToaster(placement: ToastPlacement): Toaster | undefined; /** * Get all toaster entries (used by ToastOutlet for rendering). */ export declare function getToasterEntries(): Array<[ToastPlacement, Toaster]>; export {};