import type { AnyAction } from 'redux'; import type { UserAutocomplete } from '@mattermost/types/autocomplete'; import type { Channel } from '@mattermost/types/channels'; import type { UserProfile, UserStatus, GetFilteredUsersStatsOpts, UsersStats, UserCustomStatus, UserAccessToken, UserAuthUpdate } from '@mattermost/types/users'; import type { ActionFuncAsync } from 'mattermost-redux/types/actions'; export declare const maxUserIdsPerProfilesRequest = 100; export declare const maxUserIdsPerStatusesRequest = 200; export declare function generateMfaSecret(userId: string): ActionFuncAsync; export declare function createUser(user: UserProfile, token: string, inviteId: string, redirect: string): ActionFuncAsync; export declare function loadMe(): ActionFuncAsync; export declare function logout(): ActionFuncAsync; export declare function getTotalUsersStats(): ActionFuncAsync; export declare function getFilteredUsersStats(options?: GetFilteredUsersStatsOpts, updateGlobalState?: boolean): ActionFuncAsync; export declare function getProfiles(page?: number, perPage?: number, options?: any): ActionFuncAsync; export declare function getMissingProfilesByIds(userIds: string[]): ActionFuncAsync>; export declare function getMissingProfilesByUsernames(usernames: string[]): ActionFuncAsync>; export declare function getProfilesByIds(userIds: string[], options?: any): ActionFuncAsync; export declare function getProfilesByUsernames(usernames: string[]): ActionFuncAsync; export declare function getProfilesInTeam(teamId: string, page: number, perPage?: number, sort?: string, options?: any): ActionFuncAsync; export declare function getProfilesNotInTeam(teamId: string, groupConstrained: boolean, page: number, perPage?: number): ActionFuncAsync; export declare enum ProfilesInChannelSortBy { None = "", Admin = "admin" } export declare function getProfilesInChannel(channelId: string, page: number, perPage?: number, sort?: string, options?: { active?: boolean; }): ActionFuncAsync; export declare function batchGetProfilesInChannel(channelId: string): ActionFuncAsync>; export declare function getProfilesInGroupChannels(channelsIds: string[]): ActionFuncAsync; export declare function getProfilesNotInChannel(teamId: string, channelId: string, groupConstrained: boolean, page: number, perPage?: number, cursorId?: string): ActionFuncAsync; export declare function getMe(): ActionFuncAsync; export declare function getCustomProfileAttributeValues(userID: string): ActionFuncAsync>; export declare function updateMyTermsOfServiceStatus(termsOfServiceId: string, accepted: boolean): ActionFuncAsync; export declare function getProfilesInGroup(groupId: string, page?: number, perPage?: number, sort?: string): ActionFuncAsync; export declare function getProfilesNotInGroup(groupId: string, page?: number, perPage?: number): ActionFuncAsync; export declare function getTermsOfService(): ActionFuncAsync; export declare function promoteGuestToUser(userId: string): ActionFuncAsync; export declare function demoteUserToGuest(userId: string): ActionFuncAsync; export declare function createTermsOfService(text: string): ActionFuncAsync; export declare function getUser(id: string): ActionFuncAsync; export declare function getUserByUsername(username: string): ActionFuncAsync; export declare function getUserByEmail(email: string): ActionFuncAsync; export declare function canUserDirectMessage(userId: string, otherUserId: string): ActionFuncAsync<{ can_dm: boolean; }>; export declare function getStatusesByIds(userIds: Array): ActionFuncAsync; export declare function setStatus(status: UserStatus): ActionFuncAsync; export declare function setCustomStatus(customStatus: UserCustomStatus): ActionFuncAsync; export declare function unsetCustomStatus(): ActionFuncAsync; export declare function removeRecentCustomStatus(customStatus: UserCustomStatus): ActionFuncAsync; export declare function getSessions(userId: string): ActionFuncAsync; export declare function revokeSession(userId: string, sessionId: string): ActionFuncAsync; export declare function revokeAllSessionsForUser(userId: string): ActionFuncAsync; export declare function revokeSessionsForAllUsers(): ActionFuncAsync; export declare function getUserAudits(userId: string, page?: number, perPage?: number): ActionFuncAsync; export declare function autocompleteUsers(term: string, teamId?: string, channelId?: string, options?: { limit: number; }): ActionFuncAsync; export declare function searchProfiles(term: string, options?: any): ActionFuncAsync; export declare function updateMe(user: Partial): ActionFuncAsync; export declare function saveCustomProfileAttribute(userID: string, attributeID: string, attributeValue: string | string[]): ActionFuncAsync>; export declare function patchUser(user: UserProfile): ActionFuncAsync; export declare function updateUserAuth(userId: string, userAuth: UserAuthUpdate): ActionFuncAsync; export declare function updateUserRoles(userId: string, roles: string): ActionFuncAsync; export declare function updateUserMfa(userId: string, activate: boolean, code?: string): ActionFuncAsync; export declare function updateUserPassword(userId: string, currentPassword: string, newPassword: string): ActionFuncAsync; export declare function resetFailedAttempts(userId: string): ActionFuncAsync; export declare function updateUserActive(userId: string, active: boolean): ActionFuncAsync; export declare function verifyUserEmail(token: string): ActionFuncAsync; export declare function sendVerificationEmail(email: string): ActionFuncAsync; export declare function resetUserPassword(token: string, newPassword: string): ActionFuncAsync; export declare function sendPasswordResetEmail(email: string): ActionFuncAsync; export declare function setDefaultProfileImage(userId: string): ActionFuncAsync; export declare function uploadProfileImage(userId: string, imageData: any): ActionFuncAsync; export declare function switchEmailToOAuth(service: string, email: string, password: string, mfaCode?: string): ActionFuncAsync; export declare function switchOAuthToEmail(currentService: string, email: string, password: string): ActionFuncAsync; export declare function switchEmailToLdap(email: string, emailPassword: string, ldapId: string, ldapPassword: string, mfaCode?: string): ActionFuncAsync; export declare function switchLdapToEmail(ldapPassword: string, email: string, emailPassword: string, mfaCode?: string): ActionFuncAsync; export declare function createUserAccessToken(userId: string, description: string): ActionFuncAsync; export declare function getUserAccessToken(tokenId: string): ActionFuncAsync; export declare function getUserAccessTokensForUser(userId: string, page?: number, perPage?: number): ActionFuncAsync; export declare function revokeUserAccessToken(tokenId: string): ActionFuncAsync; export declare function disableUserAccessToken(tokenId: string): ActionFuncAsync; export declare function enableUserAccessToken(tokenId: string): ActionFuncAsync; export declare function getKnownUsers(): ActionFuncAsync; export declare function clearUserAccessTokens(): ActionFuncAsync; export declare function checkForModifiedUsers(): ActionFuncAsync; declare const _default: { generateMfaSecret: typeof generateMfaSecret; logout: typeof logout; getProfiles: typeof getProfiles; getProfilesByIds: typeof getProfilesByIds; getProfilesInTeam: typeof getProfilesInTeam; getProfilesInChannel: typeof getProfilesInChannel; getProfilesNotInChannel: typeof getProfilesNotInChannel; getUser: typeof getUser; getMe: typeof getMe; getUserByUsername: typeof getUserByUsername; getStatusesByIds: typeof getStatusesByIds; getSessions: typeof getSessions; getTotalUsersStats: typeof getTotalUsersStats; revokeSession: typeof revokeSession; revokeAllSessionsForUser: typeof revokeAllSessionsForUser; revokeSessionsForAllUsers: typeof revokeSessionsForAllUsers; getUserAudits: typeof getUserAudits; searchProfiles: typeof searchProfiles; updateMe: typeof updateMe; updateUserAuth: typeof updateUserAuth; updateUserRoles: typeof updateUserRoles; updateUserMfa: typeof updateUserMfa; updateUserPassword: typeof updateUserPassword; updateUserActive: typeof updateUserActive; verifyUserEmail: typeof verifyUserEmail; sendVerificationEmail: typeof sendVerificationEmail; resetUserPassword: typeof resetUserPassword; sendPasswordResetEmail: typeof sendPasswordResetEmail; uploadProfileImage: typeof uploadProfileImage; switchEmailToOAuth: typeof switchEmailToOAuth; switchOAuthToEmail: typeof switchOAuthToEmail; switchEmailToLdap: typeof switchEmailToLdap; switchLdapToEmail: typeof switchLdapToEmail; getTermsOfService: typeof getTermsOfService; createTermsOfService: typeof createTermsOfService; updateMyTermsOfServiceStatus: typeof updateMyTermsOfServiceStatus; createUserAccessToken: typeof createUserAccessToken; getUserAccessToken: typeof getUserAccessToken; getUserAccessTokensForUser: typeof getUserAccessTokensForUser; revokeUserAccessToken: typeof revokeUserAccessToken; disableUserAccessToken: typeof disableUserAccessToken; enableUserAccessToken: typeof enableUserAccessToken; checkForModifiedUsers: typeof checkForModifiedUsers; }; export default _default;