react-material-overlay
Version:
A fully featured Material UI implementation of overlays like modals, alert dialogs, lightboxes, and bottom sheets featuring easy stack management and browser history integration
16 lines • 875 B
TypeScript
import type { Id, Notify } from '../../types';
import { IAlertDialogDefaultOptions, IAlertDialogProps, INotValidatedAlertDialogProps } from './types';
export type ContainerObserver = ReturnType<typeof createContainerObserver>;
export declare function createContainerObserver(id: Id, containerDefaultOptions: IAlertDialogDefaultOptions): {
id: Id;
defaultOptions: IAlertDialogDefaultOptions;
observe: (notify: Notify) => () => boolean;
pushAlertDialog: (alertDialog: IAlertDialogProps) => Promise<void>;
popAlertDialog: () => void;
readonly alertDialogCount: number;
buildAlertDialog: (options: INotValidatedAlertDialogProps) => IAlertDialogProps;
setDefaultOptions(d: IAlertDialogDefaultOptions): void;
isAlertDialogActive: (id: Id) => boolean;
getSnapshot: () => IAlertDialogProps[];
};
//# sourceMappingURL=containerObserver.d.ts.map