Files
2026-04-09 13:19:47 -05:00

16 lines
550 B
TypeScript

import { type MutableRefObject, type ReactNode } from 'react';
type OnUpdate = (message: StackMessage, type: string, element: MutableRefObject<HTMLElement | null>) => void;
export declare enum StackMessage {
Add = 0,
Remove = 1
}
export declare function useStackContext(): OnUpdate;
export declare function StackProvider({ children, onUpdate, type, element, enabled, }: {
children: ReactNode;
onUpdate?: OnUpdate;
type: string;
element: MutableRefObject<HTMLElement | null>;
enabled?: boolean;
}): JSX.Element;
export {};