import { IamClient } from '../core/iam-client'; import { AuthDevice, AuthIdentity, AuthLogin, AuthRegisterRequest, AuthRegisterResponse, AuthThirdPartyLogin, UpdateProfileRequest } from '../core/types/auth.types'; import { BaseResponse, IStorage } from '../core/types/common'; import { IApplicaAuthProvider } from './types'; /** * ApplicaAuthProvider: thin wrapper over IamClient for React Admin compatibility. * * Maintains the same constructor signature for backward compatibility. * If apiUrl ends with '/auth', it is automatically stripped so the IamClient * can reach all service endpoints. */ declare class ApplicaAuthProvider implements IApplicaAuthProvider { apiUrl: string; storage: IStorage; private client; constructor(apiUrl: string, storage: IStorage); getClient(): IamClient; login(params: AuthLogin): Promise; logout(): Promise; checkAuth(): Promise; checkError(error: any): Promise; getPermissions(): Promise; getIdentity(): Promise; getHeaders(): Promise; getToken(): Promise; validateToken(token: string): Promise; getRoles(): Promise; impersonate(id: string | number): Promise; isImpersonating(): Promise; stopImpersonate(): Promise; registerDevice(code: string): Promise; getDevice(code: string): Promise; resetPin(userId: string, pinCode: string): Promise; pinLogin(deviceCode: string, pin: string): Promise; register(data: AuthRegisterRequest): Promise; activate(activationCode: string): Promise; changePassword(currentPassword: string, password: string): Promise; recover(email: string): Promise; updateProfile(request: UpdateProfileRequest): Promise; thirdPartyLogin(data: AuthThirdPartyLogin): Promise; } /** * Factory function — backward compatible. */ declare function createAuthProvider(config: { apiUrl: string; storage?: IStorage; }): ApplicaAuthProvider; export { ApplicaAuthProvider, createAuthProvider }; //# sourceMappingURL=auth-provider.d.ts.map