import { RequestTypes } from 'detritus-client-rest'; import { ShardClient } from '../client'; import { BaseSet } from '../collections/baseset'; import { Oauth2AssetTypes } from '../constants'; import { UrlQuery } from '../utils'; import { BaseStructure, BaseStructureData } from './basestructure'; import { Team } from './team'; import { UserWithFlags, UserWithToken } from './user'; /** * Oauth2 Application Structure * @category Structure */ export declare class Oauth2Application extends BaseStructure { readonly _keys: BaseSet; bot?: UserWithToken; botPublic: boolean; botRequireCodeGrant: boolean; coverImage?: string | null; description: string; flags: number; guildId?: string; icon: null | string; id: string; name: string; owner: UserWithFlags; primarySkuId?: string; redirectUris?: Array; rpcApplicationState?: number; rpcOrigins?: Array; secret?: string; slug?: string; storeApplicationState?: number; summary: string; team?: Team; verifyKey: string; constructor(client: ShardClient, data?: BaseStructureData, isClone?: boolean); get coverImageUrl(): null | string; get createdAt(): Date; get createdAtUnix(): number; get jumpLink(): null | string; get iconUrl(): null | string; get isOnDiscord(): boolean; get oauth2Url(): string; get platformDiscordUrl(): null | string; coverImageUrlFormat(format?: null | string, query?: UrlQuery): null | string; iconUrlFormat(format?: null | string, query?: UrlQuery): null | string; oauth2UrlFormat(options?: UrlQuery): string; createAsset(options: RequestTypes.CreateOauth2ApplicationAsset): Promise; createStoreAsset(options: RequestTypes.CreateStoreApplicationAsset): Promise; deleteAsset(assetId: string): Promise; deleteStoreAsset(assetId: string): Promise; fetchAssets(): Promise>; fetchNews(): Promise>; fetchStoreAssets(): Promise>; joinGuild(options?: RequestTypes.JoinGuild): Promise; mergeValue(key: string, value: any): void; } export declare const keysOauth2ApplicationAsset: BaseSet; export declare class Oauth2ApplicationAsset extends BaseStructure { readonly _keys: BaseSet; applicationId: string; id: string; name: string; type: Oauth2AssetTypes; constructor(client: ShardClient, data?: BaseStructureData, isClone?: boolean); get isLarge(): boolean; get isSmall(): boolean; get url(): string; urlFormat(format?: null | string, query?: UrlQuery): string; delete(): Promise; }