import User from '../../models/User'; import BaseClient from '../../base'; import Group from '../../models/Group'; /** * Request format for {@link ContactListApi} */ export interface ContactListApiReq { /** Pass this to load more contacts */ startTime?: number; /** Number of contacts to load */ pageSize?: number; /** userId of user for which information has to be retrieved */ userId?: string; /** Role of user for which information has to be retrieved */ role?: 'BOT' | 'USER'; } /** * Response format for {@link ContactListApi} */ export interface ContactListApiRes { /** List of users */ users: User[]; /** List of groups */ groups: Group[]; devices: []; /** Use this to get the next page of users */ lastFetchTime: number; lastFetchIndex: number; totalUnreadCount: number; } /** * For usage, see {@link ContactsApi.getContactList} */ export interface ContactListApi { /** * @param options Contact list fetch options */ (options?: ContactListApiReq): Promise; } declare const contactListBuilder: (applozicClient: BaseClient) => ContactListApi; export default contactListBuilder;