UNPKG

751 BTypeScriptView Raw
1import { PortalHost, Portal } from '../portal/portal';
2import { OverlayState } from './overlay-state';
3/**
4 * Reference to an overlay that has been created with the Overlay service.
5 * Used to manipulate or dispose of said overlay.
6 */
7export declare class OverlayRef implements PortalHost {
8 private _portalHost;
9 private _pane;
10 private _state;
11 constructor(_portalHost: PortalHost, _pane: HTMLElement, _state: OverlayState);
12 attach(portal: Portal<any>): any;
13 detach(): Promise<any>;
14 dispose(): void;
15 hasAttached(): boolean;
16 /** Gets the current state config of the overlay. */
17 getState(): OverlayState;
18 /** Updates the position of the overlay based on the position strategy. */
19 updatePosition(): void;
20}