/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Platform } from '@angular/cdk/platform'; import { ViewportRuler } from '@angular/cdk/scrolling'; import { ElementRef } from '@angular/core'; import { OverlayContainer } from '../overlay-container'; import { OriginConnectionPosition, OverlayConnectionPosition } from './connected-position'; import { ConnectedPositionStrategy } from './connected-position-strategy'; import { FlexibleConnectedPositionStrategy, FlexibleConnectedPositionStrategyOrigin } from './flexible-connected-position-strategy'; import { GlobalPositionStrategy } from './global-position-strategy'; /** Builder for overlay position strategy. */ import * as ɵngcc0 from '@angular/core'; export declare class OverlayPositionBuilder { private _viewportRuler; private _document; private _platform; private _overlayContainer; constructor(_viewportRuler: ViewportRuler, _document: any, _platform: Platform, _overlayContainer: OverlayContainer); /** * Creates a global position strategy. */ global(): GlobalPositionStrategy; /** * Creates a relative position strategy. * @param elementRef * @param originPos * @param overlayPos * @deprecated Use `flexibleConnectedTo` instead. * @breaking-change 8.0.0 */ connectedTo(elementRef: ElementRef, originPos: OriginConnectionPosition, overlayPos: OverlayConnectionPosition): ConnectedPositionStrategy; /** * Creates a flexible position strategy. * @param origin Origin relative to which to position the overlay. */ flexibleConnectedTo(origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy; static ɵfac: ɵngcc0.ɵɵFactoryDeclaration; } //# sourceMappingURL=overlay-position-builder.d.ts.map