import { Client, ClientOptions, RequestTypes } from 'detritus-client-rest'; import { AuthTypes } from 'detritus-client-rest/lib/constants'; import { ShardClient } from '../client'; import { BaseCollection } from '../collections/basecollection'; import { Application, ApplicationCommand, ApplicationCommandPermissions, ApplicationNews, AuditLog, Channel, ChannelDM, ChannelDMGroup, ChannelGuildThread, ConnectedAccount, Emoji, Gift, Guild, GuildMe, Integration, Invite, Member, Message, Oauth2Application, Oauth2ApplicationAsset, PremiumSubscription, Profile, Role, StageInstance, Sticker, StoreApplicationAsset, StoreListing, Team, TeamMember, Template, ThreadMember, User, UserMe, UserWithBanner, VoiceRegion, Webhook } from '../structures'; import { RestResponses } from './types'; export declare class RestClient { readonly client: ShardClient; readonly raw: Client; constructor(token: string, options: ClientOptions, client: ShardClient); get isBot(): boolean; get isUser(): boolean; setAuthType(type: AuthTypes | string): void; request(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; delete(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; get(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; head(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; options(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; patch(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; post(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; put(info: RequestTypes.Options | string | URL, init?: RequestTypes.Options): Promise; acceptAgreements(privacy?: boolean, terms?: boolean): Promise; acceptInvite(code: string): Promise; acceptTeamInvite(token: string): Promise; ackChannelMessage(channelId: string, messageId: string, token: string): Promise; ackChannelPins(channelId: string): Promise; ackGuild(guildId: string): Promise; acceptTemplate(templateId: string, options: RequestTypes.AcceptTemplate): Promise; activateOauth2ApplicationLicense(applicationId: string, options: RequestTypes.ActivateOauth2ApplicationLicense): Promise; addConnection(platform: string, accountId: string, options: RequestTypes.AddConnection): Promise; addGuildMember(guildId: string, userId: string, options: RequestTypes.AddGuildMember): Promise; addGuildMemberRole(guildId: string, userId: string, roleId: string, options?: RequestTypes.AddGuildMemberRole): Promise; addPinnedMessage(channelId: string, messageId: string): Promise; addRecipient(channelId: string, userId: string): Promise; addOauth2ApplicationWhitelistUser(applicationId: string, options: RequestTypes.AddOauth2ApplicationWhitelistUser): Promise; addTeamMember(teamId: string, options: RequestTypes.AddTeamMember): Promise; addThreadMember(channelId: string, userId: string): Promise; authorizeIpAddress(options: RequestTypes.AuthorizeIpAddress): Promise; beginGuildPrune(guildId: string, options?: RequestTypes.BeginGuildPrune): Promise; bulkDeleteMessages(channelId: string, messageIds: Array): Promise; bulkOverwriteApplicationCommands(applicationId: string, commands: Array): Promise>; bulkOverwriteApplicationGuildCommands(applicationId: string, guildId: string, commands: Array): Promise>; bulkOverwriteApplicationGuildCommandsPermissions(applicationId: string, guildId: string, permissions: RequestTypes.BulkOverwriteApplicationGuildCommandsPermissions): Promise>; connectionCallback(platform: string, options: RequestTypes.ConnectionCallback): Promise; createApplicationCommand(applicationId: string, options: RequestTypes.CreateApplicationCommand): Promise; createApplicationGuildCommand(applicationId: string, guildId: string, options: RequestTypes.CreateApplicationCommand): Promise; createApplicationNews(options: RequestTypes.CreateApplicationNews): Promise; createChannelInvite(channelId: string, options?: RequestTypes.CreateChannelInvite): Promise; createChannelMessageThread(channelId: string, messageId: string, options: RequestTypes.CreateChannelMessageThread): Promise; createChannelStoreListingGrantEntitlement(channelId: string): Promise; createChannelThread(channelId: string, options: RequestTypes.CreateChannelThread): Promise; createDm(options?: RequestTypes.CreateDm): Promise; createGuild(options: RequestTypes.CreateGuild): Promise; createGuildBan(guildId: string, userId: string, options?: RequestTypes.CreateGuildBan): Promise; createGuildChannel(guildId: string, options: RequestTypes.CreateGuildChannel, updateCache?: boolean): Promise; createGuildEmoji(guildId: string, options: RequestTypes.CreateGuildEmoji, updateCache?: boolean): Promise; createGuildSticker(guildId: string, options: RequestTypes.CreateGuildSticker): Promise; createGuildIntegration(guildId: string, options: RequestTypes.CreateGuildIntegration): Promise; createGuildRole(guildId: string, options?: RequestTypes.CreateGuildRole): Promise; createGuildTemplate(guildId: string, options: RequestTypes.CreateGuildTemplate): Promise