import { Collection, UserManager, type APIUser, type User } from "discord.js"; export default class UserManagerExtension { cache: UserManager["cache"]; client: UserManager["client"]; constructor(); /** @DJSProtofy */ getById(id: string): User; /** @DJSProtofy */ getByDisplayName(name: string | RegExp): User; /** @DJSProtofy */ getByGlobalName(name: string | RegExp): User; /** @DJSProtofy */ getByUsername(name: string | RegExp): User; /** @DJSProtofy */ getInShardsById(id: string): Promise; getInShardsById(id: string, allowApiUser: true): Promise; /** @DJSProtofy */ getInShardsByDisplayName(name: string | RegExp): Promise; getInShardsByDisplayName(name: string | RegExp, allowApiUser: true): Promise; /** @DJSProtofy */ getInShardsByGlobalName(name: string | RegExp): Promise; getInShardsByGlobalName(name: string | RegExp, allowApiUser: true): Promise; /** @DJSProtofy */ getInShardsByUsername(name: string | RegExp): Promise; getInShardsByUsername(name: string | RegExp, allowApiUser: true): Promise; /** @DJSProtofy */ searchBy(query: T): User | undefined; searchBy(query: T): User | undefined; searchBy(query: T): User | undefined; searchBy(query: T): User | undefined; searchBy(query: T[]): Collection; /** @DJSProtofy */ protected _searchByMany(queries: (string | RegExp | Search)[]): this["cache"]; /** @DJSProtofy */ protected _searchByRegExp(query: RegExp): User; /** @DJSProtofy */ protected _searchByString(query: string): User; } interface Search { id?: string; globalName?: string | RegExp; username?: string | RegExp; } export {};