import { AxiosRequestConfig } from 'axios'; import { Observable } from 'rxjs'; import Token from './token.interface'; export type AuthServiceTokenParams = { authService: AuthServiceParams; }; export type KeycloakTokenParams = { keycloak: KeycloakParams; }; export type ServerAuthServiceParams = AuthServiceTokenParams | KeycloakTokenParams; export type ServerTokenParams = { authService?: AuthServiceParams; keycloak?: KeycloakParams; }; export type AuthServiceParams = { url: string; clientId: string; clientSecret: string; scope: string; }; export type KeycloakParams = { enable: boolean; baseUrl: string; realm: string; clientId: string; clientSecret: string; scope: string; }; export interface ServerAuthServiceInterface { getToken(params: ServerTokenParams, key?: string): Observable; authenticate(ob: Observable, config?: AxiosRequestConfig): Observable; } //# sourceMappingURL=server-auth-service.interface.d.ts.map