import * as i0 from '@angular/core'; import { ID, ApiDto, ApiService } from '@ng-vagabond-lab/ng-dsv/api'; import { EnvironmentService } from '@ng-vagabond-lab/ng-dsv/environment'; import { ToastService } from '@ng-vagabond-lab/ng-dsv/ds/toast'; import { StorageService } from '@ng-vagabond-lab/ng-dsv/storage'; import { CanActivateFn } from '@angular/router'; declare class AuthComponent { readonly authGoogleService: AuthGoogleService; readonly authService: AuthService; readonly environmentService: EnvironmentService; readonly initMember: i0.OutputEmitterRef; readonly ssrRendered: i0.WritableSignal; constructor(); logout(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface UserDto extends ApiDto { avatar?: string; creationDate?: string; facebookId?: string; googleId?: string; username?: string; profiles?: []; } interface UserConnectedDto { googleToken?: string; jwt?: string; jwtRefresh?: string; user?: UserDto; } interface GoogleRequest { googleToken: string; } declare const authGuard: CanActivateFn; declare class AuthGoogleService { private readonly authService; private readonly environmentService; initGoogleAuth(): void; handleCredentialResponse(response: { credential: string; }): void; decodeJwtToken(token: string): any; loginWithGoogle(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AuthService { apiService: ApiService; toastService: ToastService; storageService: StorageService; userConnected: i0.WritableSignal; googleLogin(credential: string): void; loginFromCache(): any; logout(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const hasRole: (role: string, userRoles?: ApiDto[]) => boolean; export { AuthComponent, AuthGoogleService, AuthService, authGuard, hasRole }; export type { GoogleRequest, UserConnectedDto, UserDto };