import type { DiscordInvite, DiscordInviteCreate, TargetTypes } from '@discordeno/types'; import type Client from '../Client.js'; import type Channel from './channels/Channel.js'; import Guild from './guilds/Guild.js'; import Member from './guilds/Member.js'; import User from './users/User.js'; export declare class Invite { /** The client object. */ client: Client; /** The invite code (unique Id) */ code: string; /** The channel this invite is for */ channel?: Channel; /** The guild this invite is for. */ guild?: Guild; /** The user who created this invite. */ inviter?: User; /** The amount of times this invite has been used. */ uses: number | null; /** The amount of times this invite can be used. */ maxUses: number | null; /** How long the invite is valid for (in seconds) */ maxAge: number | null; /** Whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role) */ temporary: boolean; /** The time at which the invite was created */ createdAt?: number; presenceCount?: number | null; memberCount?: number | null; stageInstance?: { members: Member[]; participantCount: number; speakerCount: number; topic: string; } | null; targetApplicationID?: string | null; targetType?: TargetTypes | null; targetUser?: User | null; constructor(data: DiscordInvite | DiscordInviteCreate, client: Client); /** * @deprecated Use .client */ get _client(): Client; /** * @deprecated Use .createdAt */ get _createdAt(): number | undefined; /** Delete the invite */ delete(reason?: string): Promise; toString(): string; toJSON(props?: never[]): Record; isInviteCreate(data: DiscordInvite | DiscordInviteCreate): data is DiscordInviteCreate; } export default Invite; //# sourceMappingURL=Invite.d.ts.map