import { Block } from "./Block"; export declare class Connection { readonly token: string; readonly channels: Record; private constructor(); join(channel: C): Promise; send(channel: C, text?: string, blocks?: Block[]): Promise; upload(channels: C[], title: string, file: File | string, parent?: string): Promise; static open(token: string | undefined, channels: Record): Connection | undefined; private static fetch; private static postQuery; private static postMultipart; private static postJson; static getToken(code: string, client_id?: string, client_secret?: string): Promise; }