import type { Channel, ChannelAccount, ChannelBot, ChannelDirectChat, ChannelGroup, ChannelManager, ChannelMessage, ChannelSearchResponse, ChannelUserChat, MessageBlock } from './types.js'; export declare class ChannelClient { private accountCookie; private sessionCookie; private rateLimitRemaining; private rateLimitResetAt; login(credentials?: { accountCookie: string; sessionCookie?: string; }): Promise; private ensureAuth; static wrapTextInBlocks(text: string): MessageBlock[]; static extractText(message: ChannelMessage): string; getAccount(): Promise; listChannels(params?: { limit?: number; }): Promise; getChannel(channelId: string): Promise; listManagers(channelId: string, params?: { limit?: number; }): Promise; getManagerRole(channelId: string): Promise<{ permissions: unknown[]; }>; listGroups(channelId: string, params?: { limit?: number; }): Promise; getGroup(channelId: string, groupId: string): Promise; getGroupMessages(channelId: string, groupId: string, params?: { sortOrder?: string; limit?: number; since?: string; }): Promise; sendGroupMessage(channelId: string, groupId: string, blocks: MessageBlock[], requestId?: string): Promise; listDirectChats(channelId: string, params?: { limit?: number; }): Promise; getDirectChatMessages(channelId: string, chatId: string, params?: { sortOrder?: string; limit?: number; }): Promise; sendDirectChatMessage(channelId: string, chatId: string, blocks: MessageBlock[], requestId?: string): Promise; listUserChats(channelId: string, params?: { state?: string; limit?: number; }): Promise; getUserChat(channelId: string, chatId: string): Promise; getUserChatMessages(channelId: string, chatId: string, params?: { sortOrder?: string; limit?: number; }): Promise; sendUserChatMessage(channelId: string, chatId: string, blocks: MessageBlock[], requestId?: string): Promise; listBots(channelId: string, params?: { limit?: number; }): Promise; searchTeamChatMessages(channelId: string, query: string, params?: { limit?: number; }): Promise; searchUserChatMessages(channelId: string, query: string, params?: { limit?: number; }): Promise; private getHeaders; private waitForRateLimit; private updateRateLimit; private request; private createHttpError; private buildPath; private sleep; } //# sourceMappingURL=client.d.ts.map