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 • 830 B
TypeScript
import type { Id, Notify } from '../../types';
import { ILightboxDefaultOptions, ILightboxProps, INotValidatedLightboxProps } from './types';
export type ContainerObserver = ReturnType<typeof createContainerObserver>;
export declare function createContainerObserver(id: Id, containerDefaultOptions: ILightboxDefaultOptions): {
id: Id;
defaultOptions: ILightboxDefaultOptions;
observe: (notify: Notify) => () => boolean;
pushLightbox: (lightbox: ILightboxProps) => Promise<void>;
popLightbox: () => void;
readonly alertDialogCount: number;
buildLightbox: (options: INotValidatedLightboxProps) => ILightboxProps;
setDefaultOptions(d: ILightboxDefaultOptions): void;
isLightboxActive: (id: Id) => boolean;
getSnapshot: () => ILightboxProps[];
};
//# sourceMappingURL=containerObserver.d.ts.map