import { AmityUserSearchMatchType } from '~/userRepository'; export declare const enum UserTypeEnum { SIGNED_IN = "signed-in", VISITOR = "visitor", BOT = "bot" } export declare enum SearchUsersByEnum { DISPLAY_NAME = "displayName", PROFILE_HANDLE = "profileHandle", USER_ID = "userId" } export {}; declare global { namespace Amity { const enum UserSortByEnum { FirstCreated = "firstCreated", LastCreated = "lastCreated" } type UserSearchMatchType = AmityUserSearchMatchType; type UserSortBy = `${Amity.UserSortByEnum}`; const enum SearchUserSortByEnum { FirstCreated = "firstCreated", LastCreated = "lastCreated", DisplayName = "displayName" } type SearchUserSortBy = `${Amity.SearchUserSortByEnum}`; type SearchUsersBy = SearchUsersByEnum; type UserActionType = 'onFetch' | 'onUpdate' | 'onDelete' | 'onFlagged' | 'onUnflagged' | 'onFlagCleared'; type UserType = `${UserTypeEnum}`; type RawUser = { _id: string; userId: string; userInternalId: string; userPublicId: string; displayName?: string; avatarFileId?: string; avatarCustomUrl?: string; description?: string; isBrand: boolean; isGlobalBan: boolean; } & Amity.Metadata & Amity.Taggable & Amity.Flaggable & Amity.Accredited & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable; type InternalUser = Amity.RawUser & { isGlobalBanned: boolean; } & Amity.Metadata & Amity.Taggable & Amity.Flaggable & Amity.Accredited & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable; type User = Amity.InternalUser & { avatar?: Amity.File<'image'> | null; }; type QueryUsers = { filter?: 'all' | 'flagged'; sortBy?: Amity.UserSortBy | Amity.UserSortByEnum; limit?: number; page?: string; matchType?: UserSearchMatchType; }; type QuerySearchUsers = { displayName?: Amity.InternalUser['displayName']; filter?: 'all' | 'flagged'; sortBy?: Amity.SearchUserSortBy | Amity.SearchUserSortByEnum; limit?: number; page?: string; matchType?: UserSearchMatchType; searchBy?: Amity.SearchUsersBy[]; }; type UserLiveCollection = Amity.LiveCollectionParams>; type SearchUserLiveCollection = Amity.LiveCollectionParams>; type UserSearchLiveCollection = Amity.SearchUserLiveCollection; type UserLiveCollectionCache = Amity.LiveCollectionCache>; } } //# sourceMappingURL=user.d.ts.map