import React from 'react'; import type { DisplayOnType } from '.'; import type { COLLAPSE_ABOVE, COLLAPSE_BELOW } from '../more-menu'; import type { IconProps } from '@planview/pv-icons'; export type ResizeContextType = { initialized: boolean; breakpoint: string; showLabels: boolean; showSeparators: boolean; shouldDisplay: (displayOn: DisplayOnType) => boolean; }; declare const ResizeContext: React.Context; export default ResizeContext; type WrappingParentContextType = { wrappedInToolbarParent: boolean; }; export declare const WrappingParentContext: React.Context; type GenericContextType = { displayOn: DisplayOnType; showMoreMenuItem: boolean; }; export declare const GenericContext: React.Context; type MainNavigationContextType = { wrappedInNavigation: boolean; }; export declare const MainNavigationContext: React.Context; export declare const useMainNavigationContext: () => MainNavigationContextType; export type UserMenuConfig = { trigger: React.JSX.Element; children: React.ReactNode; }; type UserMenuContextType = { add: (config: UserMenuConfig) => void; remove: () => void; }; export declare const UserMenuContext: React.Context; export declare const useUserMenu: () => UserMenuContextType; export type MoreMenuChildType = React.ReactElement; type ChildEntry = { child: MoreMenuChildType; id: string; displayOn: DisplayOnType; }; type CustomMoreMenuState = { children: MoreMenuChildType[]; icon?: React.ReactElement; collapse: typeof COLLAPSE_ABOVE | typeof COLLAPSE_BELOW; }; type MoreMenuContextType = { inMoreMenuSection: boolean; dispatch: (value: ActionType) => void; registeredItems: ChildEntry[]; customMoreMenu: CustomMoreMenuState | null; }; export declare const MoreMenuContext: React.Context; type RegisterAction = { type: 'REGISTER_CHILD'; id: string; child: MoreMenuChildType; displayOn: DisplayOnType; }; type RegisterMoreMenuAction = { type: 'REGISTER_MORE_MENU_CONTENT'; children: MoreMenuChildType[]; collapse: typeof COLLAPSE_ABOVE | typeof COLLAPSE_BELOW; icon?: React.ReactElement; }; type UnRegisterMoreMenuAction = { type: 'UNREGISTER_MORE_MENU_CONTENT'; }; type UpdateAction = { type: 'UPDATE_CHILD'; id: string; child: MoreMenuChildType; displayOn: DisplayOnType; }; type UnRegisterAction = { type: 'UNREGISTER_CHILD'; id: string; }; type ClearAction = { type: 'CLEAR'; }; export type ActionType = RegisterAction | ClearAction | UnRegisterAction | UpdateAction | RegisterMoreMenuAction | UnRegisterMoreMenuAction; type ProviderProps = { children: React.ReactNode; }; export declare const MoreMenuProvider: ({ children }: ProviderProps) => React.JSX.Element; //# sourceMappingURL=context.d.ts.map