import type React from 'react';
import { type ReactNode } from 'react';
import type { UseFollowHook } from '../hooks/useFollow.types';
import { OxyServices } from '../../core';
import type { User, ApiError } from '../../models/interfaces';
import type { ClientSession, MinimalUserData } from '../../models/session';
import type { BottomSheetController } from '../navigation/types';
import type { RouteName } from '../navigation/routes';
export interface OxyContextState {
    user: User | null;
    minimalUser: MinimalUserData | null;
    sessions: ClientSession[];
    activeSessionId: string | null;
    isAuthenticated: boolean;
    isLoading: boolean;
    error: string | null;
    currentLanguage: string;
    login: (username: string, password: string, deviceName?: string) => Promise<User>;
    logout: (targetSessionId?: string) => Promise<void>;
    logoutAll: () => Promise<void>;
    signUp: (username: string, email: string, password: string) => Promise<User>;
    completeMfaLogin?: (mfaToken: string, code: string) => Promise<User>;
    switchSession: (sessionId: string) => Promise<void>;
    removeSession: (sessionId: string) => Promise<void>;
    refreshSessions: () => Promise<void>;
    setLanguage: (languageId: string) => Promise<void>;
    getDeviceSessions: () => Promise<any[]>;
    logoutAllDeviceSessions: () => Promise<void>;
    updateDeviceName: (deviceName: string) => Promise<void>;
    oxyServices: OxyServices;
    bottomSheetRef?: React.RefObject<BottomSheetController | null>;
    showBottomSheet?: (screenOrConfig?: RouteName | string | {
        screen: RouteName | string;
        props?: Record<string, any>;
    }) => void;
    hideBottomSheet?: () => void;
    /**
     * (Deprecated) useFollow hook access via context. Prefer: import { useFollow } from '@oxyhq/services';
     * Kept for backward compatibility; implemented as a lazy dynamic require to avoid circular dependency.
     */
    useFollow: UseFollowHook;
}
declare const OxyContext: React.Context<OxyContextState | null>;
export interface OxyContextProviderProps {
    children: ReactNode;
    oxyServices?: OxyServices;
    baseURL?: string;
    storageKeyPrefix?: string;
    onAuthStateChange?: (user: User | null) => void;
    onError?: (error: ApiError) => void;
    bottomSheetRef?: React.RefObject<BottomSheetController | null>;
}
export declare const OxyProvider: React.FC<OxyContextProviderProps>;
export declare const OxyContextProvider: React.FC<OxyContextProviderProps>;
export declare const useOxy: () => OxyContextState;
export default OxyContext;
//# sourceMappingURL=OxyContext.d.ts.map