import { IAuthenticatedRequestOptions } from "@esri/arcgis-rest-auth" ; import { IAuthenticationManager } from "@esri/arcgis-rest-request" ; import { IPagingParams , IUser } from "@esri/arcgis-rest-types" ; import { SearchQueryBuilder } from "../util/SearchQueryBuilder" ; import { ISearchOptions , ISearchResult } from "../util/search" ; import { genericSearch } from "../util/generic-search" ; export interface IUserSearchOptions extends ISearchOptions { authentication : IAuthenticationManager ; } param search returns export function searchUsers ( search ) { return genericSearch < IUser > ( search , "user" ) ; }