1 | import React from 'react';
|
2 | export declare type DropDirection = 'up' | 'down' | 'left' | 'right';
|
3 | export declare type DropdownContextValue = {
|
4 | toggle: (nextShow: boolean, event?: React.SyntheticEvent | Event) => void;
|
5 | menuElement: HTMLElement | null;
|
6 | toggleElement: HTMLElement | null;
|
7 | setMenu: (ref: HTMLElement | null) => void;
|
8 | setToggle: (ref: HTMLElement | null) => void;
|
9 | show: boolean;
|
10 | alignEnd?: boolean;
|
11 | drop?: DropDirection;
|
12 | };
|
13 | declare const DropdownContext: React.Context<DropdownContextValue | null>;
|
14 | export default DropdownContext;
|