1 | import * as React from 'react';
|
2 | import { DropdownAction, DropdownState } from './useDropdown.types';
|
3 | export interface DropdownContextValue {
|
4 | dispatch: React.Dispatch<DropdownAction>;
|
5 | popupId: string;
|
6 | registerPopup: (popupId: string) => void;
|
7 | registerTrigger: (element: HTMLElement | null) => void;
|
8 | state: DropdownState;
|
9 | triggerElement: HTMLElement | null;
|
10 | }
|
11 | declare const DropdownContext: React.Context<DropdownContextValue | null>;
|
12 | export { DropdownContext };
|