declare class Sender { private uuid; private destoried; constructor(uuid: string); destroy(): void; getUserId(): Promise; getUserName(): Promise; getChatId(): Promise; getChatName(): Promise; getMessageId(): Promise; getPlatform(): Promise; getBotId(): Promise; getContent(): Promise; isAdmin(): Promise; param(key: number | string): Promise; setContent(content: string): Promise; continue(): Promise; getAdapter(): Promise; listen(options?: { rules?: string[]; timeout?: number; handle?: (s: Sender) => Promise | string | void; listen_private?: boolean; listen_group?: boolean; allow_platforms?: string[]; prohibit_platforms?: string[]; allow_groups?: string[]; prohibit_groups?: string[]; allow_users?: string[]; prohibit_users?: string[]; }): Promise; holdOn(str: string): string; reply(content: string): Promise; doAction(options: Record): Promise; getEvent(): Promise>; } declare class Bucket { private name; constructor(name: string); transform(v: string | undefined): string | number | boolean | undefined; reverseTransform(value: any): string; get(key: string, defaultValue?: any): Promise; set(key: string, value: any): Promise<{ message?: string; changed?: boolean; }>; getAll(): Promise>; delete(key: string): Promise<{ message?: string; changed?: boolean; }>; deleteAll(): Promise; keys(): Promise; len(): Promise; buckets(): Promise; watch(key: string, handle: (old: any, now: any, key: string) => StorageModifier | void): void; getName(): Promise; } interface StorageModifier { echo?: string; now?: any; message?: string; error?: string; } interface Message { message_id?: string; user_id: string; chat_id?: string; content: string; user_name?: string; chat_name?: string; } declare class Adapter { platform: string; bot_id: string; call: any; constructor(options: { platform: string; bot_id: string; replyHandler?: (message: Message) => Promise; actionHandler?: (message: Message) => Promise; }); receive(message: Message): Promise; push(message: Message): Promise; destroy(): Promise; sender(options: any): Promise; } declare let sender: Sender; declare function sleep(ms?: number): Promise; interface CQItem { type: string; params: Record; } interface CQParams { [key: string]: string | number | boolean; } declare let utils: { buildCQTag: (type: string, params: CQParams, prefix?: string) => string; parseCQText: (text: string, prefix?: string) => (string | CQItem)[]; image: (url: string) => string; video: (url: string) => string; }; declare let console: { log(...args: any[]): void; info(...args: any[]): void; error(...args: any[]): void; debug(...args: any[]): void; }; export { Adapter, Bucket, sender, sleep, utils, console };