mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 13:51:53 +02:00
15 lines
548 B
TypeScript
15 lines
548 B
TypeScript
import { MutableRefObject, ReactNode } from 'react';
|
|
declare 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 {};
|