import type { Client } from '../client/Client'; import type { Channel } from '../structures/Channel'; import { DMChannel } from '../structures/DMChannel'; import type { Guild } from '../structures/Guild'; import { GuildChannel, ChannelData } from '../structures/GuildChannel'; import { TextChannel } from '../structures/TextChannel'; import { LimitedMap } from '../utils/LimitedMap'; export declare type AnyChannel = TextChannel | GuildChannel | DMChannel | Channel; declare class ChannelManager { cache: LimitedMap; client: Client; constructor(client: Client, limit: number); /** * Obtains one or more {@link GuildChannel}s from Discord, or the channel cache if they're already available. * @param {string|undefined} [id] - The channel's id. If undefined, fetches all channels. * @returns {Promise>} */ fetch(id: string | undefined): Promise; _createChannel(channel: ChannelData, guild: Guild): AnyChannel; _getChannel(id: string, guildId?: string): AnyChannel | undefined; } export { ChannelManager }; //# sourceMappingURL=ChannelManager.d.ts.map