import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
import { Tap } from '@iotize/tap';
import { CurrentDeviceService } from './current-device.service';
import * as i0 from "@angular/core";
export type TapResolved = {
    tap: Tap;
} | {
    error: Error;
};
/**
 * Route resolver to make sure that a Tap is set at this point
 *
 */
export declare class ConnectedTapResolver implements Resolve<TapResolved | undefined> {
    private tapService;
    constructor(tapService: CurrentDeviceService);
    resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<TapResolved | undefined>;
    onError(error: Error): {
        error: Error;
    } | PromiseLike<TapResolved>;
    static ɵfac: i0.ɵɵFactoryDeclaration<ConnectedTapResolver, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<ConnectedTapResolver>;
}
