UNPKG

526 BTypeScriptView Raw
1import { LocationConfig } from '../common/coreservices';
2/** A `LocationConfig` that delegates to the browser's `location` object */
3export declare class BrowserLocationConfig implements LocationConfig {
4 private _isHtml5;
5 private _baseHref;
6 private _hashPrefix;
7 constructor(router?: any, _isHtml5?: boolean);
8 port(): number;
9 protocol(): string;
10 host(): string;
11 html5Mode(): boolean;
12 hashPrefix(): string;
13 baseHref(href?: string): string;
14 private getBaseHref;
15 dispose(): void;
16}