import type { Channel as APIChannel } from 'revolt-api'; import { Message, ServerChannel } from './index'; import { TextBasedChannel } from './interfaces/index'; import { Client } from '../client/Client'; import { MessageManager, MessageOptions } from '../managers/index'; import { ChannelTypes } from '../util/index'; declare type APITextChannel = Extract; export declare class TextChannel extends ServerChannel implements TextBasedChannel { lastMessageId: string | null; messages: MessageManager; readonly type = ChannelTypes.TEXT; constructor(client: Client, data: APITextChannel); protected _patch(data: APITextChannel): this; send(options: MessageOptions | string): Promise; get lastMessage(): Message | null; } export {};