import React from 'react'; /** * The Page context, shared amongst the Page * and all children. Generally used to share state between * Widgets. Call dispatch() to update the state. Currently * only supports dispatch types of "set ". * Example: dispatch({ type: "set mySharedProperty", value: oldSharedProperty + 1 }); */ declare const pageContext: React.Context<{ state: any; dispatch: React.Dispatch<{ type: string; value?: any; }>; }>; /** * A Context component to wrap around a Page. Allows * sharing of state amongst sibling Widgets. * @returns */ declare const PageContextProvider: ({ children }: any) => React.JSX.Element; export { pageContext, PageContextProvider }; //# sourceMappingURL=PageContext.d.ts.map