import React, { ComponentType } from 'react'; import { Action } from '../Actions'; import { SnackbarProps } from '../lazy'; export declare type Section = { backTo?: string; title: string; appBar?: false | { position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative'; elevated?: boolean; }; onUnload?: () => void; }; export declare type Notification = Pick; export declare type ScaffoldContext = { activeSection?: Section; activeAppBar: false | { position: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative'; elevated: boolean; }; setSection: (section: Section) => void; removeSection: (section: Section) => void; setContextActions: (actions: Array) => void; clearContextActions: () => void; notify: (notification: Notification) => void; }; export declare const scaffoldContext: React.Context; export declare function withScaffoldContext

(WrappedComponent: ComponentType

): (props: P) => JSX.Element; export declare const useNotify: () => (notification: Pick) => void;