/**
 * Chat utility functions
 */
/**
 * User info for chat from auth store
 */
export interface ChatUserInfo {
    userId: string;
    userName: string;
    userPhoto: string | null;
    token: string;
}
/**
 * Check if chat user info is valid (has userId and token)
 *
 * @param userInfo - Chat user info object
 * @returns boolean indicating if user info is valid for chat
 *
 * @example
 * ```ts
 * const userInfo = getChatUserInfo(user, tokens, sessionInfo);
 * if (!isChatUserInfoValid(userInfo)) {
 *   return <ChatLoading />;
 * }
 * ```
 */
export declare const isChatUserInfoValid: (userInfo: ChatUserInfo) => boolean;
/**
 * Get WebSocket URL from API URL
 * Converts https:// to wss://, http:// to ws://, and replaces bff domain with chat domain
 *
 * @param apiUrl - The API URL (e.g., 'https://bff-hml.analiticaensino.com.br')
 * @returns WebSocket URL for chat (e.g., 'wss://bff-hml-chat.analiticaensino.com.br')
 *
 * @example
 * ```ts
 * const wsUrl = getChatWsUrl('https://bff-hml.analiticaensino.com.br');
 * // Returns: 'wss://bff-hml-chat.analiticaensino.com.br'
 *
 * const wsUrl = getChatWsUrl('https://bff.analiticaensino.com.br');
 * // Returns: 'wss://bff-chat.analiticaensino.com.br'
 * ```
 */
export declare const getChatWsUrl: (apiUrl: string) => string;
/**
 * Extract user info for chat from auth store data
 *
 * @param user - User object from auth store
 * @param tokens - Tokens object from auth store
 * @param sessionInfo - Session info object from auth store
 * @param defaultUserName - Default user name if not found (e.g., 'Professor' or 'Aluno')
 * @returns Chat user info
 *
 * @example
 * ```ts
 * const { user, tokens, sessionInfo } = useAuthStore();
 * const userInfo = getChatUserInfo(user, tokens, sessionInfo, 'Aluno');
 *
 * if (!isChatUserInfoValid(userInfo)) {
 *   return <ChatLoading />;
 * }
 *
 * const { userId, userName, userPhoto, token } = userInfo;
 * ```
 */
export declare const getChatUserInfo: (user: {
    userInstitutionId?: string | number;
    name?: string;
    urlProfilePicture?: string;
} | null | undefined, tokens: {
    token?: string;
} | null | undefined, sessionInfo: {
    userId?: string | number;
    userName?: string;
    urlProfilePicture?: string;
} | null | undefined, defaultUserName?: string) => ChatUserInfo;
//# sourceMappingURL=chatUtils.d.ts.map