import { StyledComponentProps } from '@material-ui/core'; import React, { ReactNode } from 'react'; import { Action } from '../Actions'; import { SnackbarProps } from '../lazy'; import { Notification, ScaffoldContext, Section } from './context'; export declare type ScaffoldProps = { appName: string; appBar?: false | { position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative'; elevated?: boolean; }; drawer?: ReactNode; basePath?: string; snackbar?: { anchorOrigin: SnackbarProps['anchorOrigin']; autoHideDuration: SnackbarProps['autoHideDuration']; onClose: SnackbarProps['onClose']; onMouseEnter: SnackbarProps['onMouseEnter']; onMouseLeave: SnackbarProps['onMouseLeave']; ClickAwayListenerProps: SnackbarProps['ClickAwayListenerProps']; disableWindowBlurListener: SnackbarProps['disableWindowBlurListener']; TransitionComponent: SnackbarProps['TransitionComponent']; transitionDuration: SnackbarProps['transitionDuration']; TransitionProps: SnackbarProps['TransitionProps']; }; }; export declare type PrivateScaffoldProps = ScaffoldProps & StyledComponentProps<'docked' | 'drawerPaper' | 'navIconHide' | 'appBar'>; export declare type State = { sections: Array
; notifications: Array; contextActions?: Array; drawerOpen: boolean; loadSnackbar: boolean; }; export declare class ScaffoldView extends React.Component { childContext: ScaffoldContext; state: State; historyIndex: number; readonly activeSection: Section | undefined; readonly activeAppBar: false | { position: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative'; elevated: boolean; }; constructor(props: any); updateContext: () => void; componentDidMount(): void; setSection: (section: Section) => void; removeSection: (section: Section) => void; handleDrawerToggle: () => void; render(): JSX.Element; } /** * A component to help you manage the application level * toolbar while still keeping logic cleanly seperated. * It also help with managing the history so that the back * button works as expected. */ export declare const Scaffold: React.ComponentClass;