import { Location } from '@angular/common';
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
import { Subject } from 'rxjs';
export declare class CustomRouterService {
    private _activatedRoute;
    private _router;
    private _location;
    _unsubscribeAll: Subject<any>;
    private fragments;
    private params;
    fragmentLoaded: Subject<any>;
    paramsLoaded: Subject<any>;
    constructor(_activatedRoute: ActivatedRoute, _router: Router, _location: Location);
    getLatestFragment(): Promise<any>;
    destroy(): void;
    getFragmentObject(): any;
    getParamsObject(): any;
    updateParams(param: any, value: any): void;
    setFragmentObject(fragment: string): void;
    setFragment(fragment: any): void;
    openChildPage(childPageRouter: string, navExtra?: NavigationExtras): void;
    openPage(pageRouter: string, navExtra?: NavigationExtras): void;
    backToParentPage(): void;
    openCreatePage(navExtra?: NavigationExtras): void;
    openEditPage(id: string, navExtra?: NavigationExtras): void;
    parseFragment(fragmentString: string, updateCurrent?: boolean): any;
    getFragment(routerUrl: string): string;
    getFragmentValue(key: string): any;
    appendFragment(fragment: string, key: string, value: any): string;
    appendFragmentObject(fragment: [], key: string, value: any): [];
    removeFragmentObject(fragment: [], key: string): void;
    removeFragment(fragment: string, key: string): string;
    updateFragment(key: any, value: any): void;
    updateFragmentThenUpdateUrlWithoutFireEvent(data: any): void;
    updateFragmentStr(strFragment: string): void;
    getUrlWithoutParamAndFragment(): string;
    fragmentIsChildOf(fragment: string, key: string, value: string): boolean;
    updateUrl(options?: {
        fragment?: string;
        queryPrams?: any;
    }): void;
    updateWithoutFireEvent(options?: {
        fragment?: string;
        queryPrams?: any;
        params?: any;
        isNotReplace?: boolean;
    }): void;
    convertJsonToParams(json: any): string;
    tryParse(v: any): any;
    convertParamsToJson(sParams: any): {};
    clearFragmentAndParams(): void;
    clearAllFragment(): void;
    checkHaveFragment(key: any): boolean;
    reloadPage(): void;
}
//# sourceMappingURL=custom-router.service.d.ts.map