import * as i0 from '@angular/core';
import { InjectionToken } from '@angular/core';

interface NgxBackButtonServiceConfig {
    rootUrl?: string;
    fallbackPrefix?: string;
}

declare const NgxBackButtonServiceProvider: InjectionToken<NgxBackButtonServiceConfig>;

declare class NgxBackButtonService {
    #private;
    private _history;
    private _rootUrl;
    private _fallbackPrefix;
    private _navigatingBack;
    constructor();
    getHistory(): string[];
    /**
     *
     * @param fallback
     * @return Boolean: True === Had an history to go back to
     */
    back(fallback?: string): boolean;
    static ɵfac: i0.ɵɵFactoryDeclaration<NgxBackButtonService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<NgxBackButtonService>;
}

declare class NgxBackButtonDirective {
    private _ngxBackButtonService;
    ngxBackButton?: string;
    constructor(_ngxBackButtonService: NgxBackButtonService);
    onClick(): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<NgxBackButtonDirective, never>;
    static ɵdir: i0.ɵɵDirectiveDeclaration<NgxBackButtonDirective, "[ngxBackButton]", never, { "ngxBackButton": { "alias": "ngxBackButton"; "required": false; }; }, {}, never, never, true, never>;
}

export { NgxBackButtonDirective, NgxBackButtonService, NgxBackButtonServiceProvider };
