You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
720 B

export interface ControllerShape<Opts, HTMLElm> {
create(options: Opts): Promise<HTMLElm>;
dismiss(data?: any, role?: string, id?: string): Promise<boolean>;
getTop(): Promise<HTMLElm | undefined>;
}
export declare class OverlayBaseController<Opts, Overlay> implements ControllerShape<Opts, Overlay> {
private ctrl;
constructor(ctrl: ControllerShape<Opts, Overlay>);
/**
* Creates a new overlay
*/
create(opts?: Opts): Promise<Overlay>;
/**
* When `id` is not provided, it dismisses the top overlay.
*/
dismiss(data?: any, role?: string, id?: string): Promise<boolean>;
/**
* Returns the top overlay.
*/
getTop(): Promise<Overlay | undefined>;
}