/** * OverlayStack-storage for the stack of layers (overlays). * * The stack is necessary for understanding whether there are open overlays and whether they contain a background. * Is responsible for storing the stack and provides methods for changing the stack. It works based on the Context API. * Allows you to get information about the layer stack from any part of the app using OVerlayStack.Consumer * and the withoverlaystack HOC decorator */ import * as React from 'react'; import { WithOverlayStack, IRenderProps } from './OverlayStack.types'; /** * HOC decorator for getting the stack and methods for changing the stack. * * StackOverlay.Provider must be enabled to use it */ export declare const withOverlayStack: WithOverlayStack; declare class Provider extends React.PureComponent<{}, IRenderProps> { private add; private remove; private update; state: IRenderProps; render(): JSX.Element; } export declare const OverlayStack: { Consumer: React.Consumer; Provider: typeof Provider; }; export {};