/**
 * Authentication Methods Mixin
 */
import type { User } from '../../models/interfaces';
import type { SessionLoginResponse } from '../../models/session';
import type { OxyServicesBase } from '../OxyServices.base';
export declare function OxyServicesAuthMixin<T extends typeof OxyServicesBase>(Base: T): {
    new (...args: any[]): {
        /**
         * Sign up a new user
         */
        signUp(username: string, email: string, password: string): Promise<{
            message: string;
            token: string;
            user: User;
        }>;
        /**
         * Request account recovery (send verification code)
         */
        requestRecovery(identifier: string): Promise<{
            delivery?: string;
            destination?: string;
        }>;
        /**
         * Verify recovery code
         */
        verifyRecoveryCode(identifier: string, code: string): Promise<{
            verified: boolean;
        }>;
        /**
         * Reset password using verified code
         */
        resetPassword(identifier: string, code: string, newPassword: string): Promise<{
            success: boolean;
        }>;
        /**
         * Reset password using TOTP code (recommended recovery)
         */
        resetPasswordWithTotp(identifier: string, code: string, newPassword: string): Promise<{
            success: boolean;
        }>;
        resetPasswordWithBackupCode(identifier: string, backupCode: string, newPassword: string): Promise<{
            success: boolean;
        }>;
        resetPasswordWithRecoveryKey(identifier: string, recoveryKey: string, newPassword: string): Promise<{
            success: boolean;
            nextRecoveryKey?: string;
        }>;
        /**
         * Sign in with device management
         */
        signIn(username: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<SessionLoginResponse | {
            mfaRequired: true;
            mfaToken: string;
            expiresAt: string;
        }>;
        /**
         * Complete login by verifying TOTP with MFA token
         */
        verifyTotpLogin(mfaToken: string, code: string): Promise<SessionLoginResponse>;
        /**
         * Get user by session ID
         */
        getUserBySession(sessionId: string): Promise<User>;
        /**
         * Batch get multiple user profiles by session IDs (optimized for account switching)
         * Returns array of { sessionId, user } objects
         */
        getUsersBySessions(sessionIds: string[]): Promise<Array<{
            sessionId: string;
            user: User | null;
        }>>;
        /**
         * Get access token by session ID and set it in the token store
         */
        getTokenBySession(sessionId: string): Promise<{
            accessToken: string;
            expiresAt: string;
        }>;
        /**
         * Get sessions by session ID
         */
        getSessionsBySessionId(sessionId: string): Promise<any[]>;
        /**
         * Logout from a specific session
         */
        logoutSession(sessionId: string, targetSessionId?: string): Promise<void>;
        /**
         * Logout from all sessions
         */
        logoutAllSessions(sessionId: string): Promise<void>;
        /**
         * Validate session
         */
        validateSession(sessionId: string, options?: {
            deviceFingerprint?: string;
            useHeaderValidation?: boolean;
        }): Promise<{
            valid: boolean;
            expiresAt: string;
            lastActivity: string;
            user: User;
            sessionId?: string;
            source?: string;
        }>;
        /**
         * Check username availability
         */
        checkUsernameAvailability(username: string): Promise<{
            available: boolean;
            message: string;
        }>;
        /**
         * Check email availability
         */
        checkEmailAvailability(email: string): Promise<{
            available: boolean;
            message: string;
        }>;
        httpService: import("../HttpService").HttpService;
        cloudURL: string;
        config: import("../OxyServices.base").OxyConfig;
        makeRequest<T_1>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T_1>;
        getBaseURL(): string;
        getClient(): import("../HttpService").HttpService;
        getMetrics(): {
            totalRequests: number;
            successfulRequests: number;
            failedRequests: number;
            cacheHits: number;
            cacheMisses: number;
            averageResponseTime: number;
        };
        clearCache(): void;
        clearCacheEntry(key: string): void;
        getCacheStats(): {
            size: number;
            hits: number;
            misses: number;
            hitRate: number;
        };
        getCloudURL(): string;
        setTokens(accessToken: string, refreshToken?: string): void;
        clearTokens(): void;
        getCurrentUserId(): string | null;
        hasValidToken(): boolean;
        getAccessToken(): string | null;
        waitForAuth(timeoutMs?: number): Promise<boolean>;
        withAuthRetry<T_1>(operation: () => Promise<T_1>, operationName: string, options?: {
            maxRetries?: number;
            retryDelay?: number;
            authTimeoutMs?: number;
        }): Promise<T_1>;
        validate(): Promise<boolean>;
        handleError(error: unknown): Error;
        healthCheck(): Promise<{
            status: string;
            users?: number;
            timestamp?: string;
            [key: string]: any;
        }>;
    };
    __resetTokensForTests(): void;
} & T;
//# sourceMappingURL=OxyServices.auth.d.ts.map