declare class Sender { uuid: string; private destoried; constructor(uuid: string); destructor(): void; getUserId(): Promise; getUserName(): Promise; getChatId(): Promise; getChatName(): Promise; getMessageId(): Promise; getPlatform(): Promise; getBotId(): Promise; getContent(): 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[]; persistent?: boolean; }): Promise; holdOn(str: string): string; reply(content: string): Promise; action(options: any): Promise; event(): Promise; } declare class Bucket { name: string; 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(): Promise; keys(): Promise; len(): Promise; buckets(): Promise; watch(key: string, handle: (old: any, now: any, key: string) => StorageFinal | void | any): void; _name(): Promise; } interface StorageFinal { 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 | undefined; bot_id: string | undefined; call: any; constructor(options: { platform?: string; bot_id?: string; replyHandler?: (message: Message) => string | undefined | Promise; actionHandler?: (message: Message) => string | undefined | Promise; }); setActionHandler(func: (action: {}) => any): void; receive(message: Message): Promise; push(message: Message): Promise; destroy(): Promise; sender(options: any): Promise; } declare let sender: Sender; declare function sleep(ms: number | undefined): Promise; declare let utils: { parseCQText: (text: string, prefix?: string) => (string | { type: string; params: any; })[]; }; export { Adapter, Bucket, sender, sleep, utils };