import { Context, Dict } from 'koishi'; export declare namespace Webhook { interface Response { code: number; body: string; headers: Dict; } } export declare class Webhook { ctx: Context; static inject: string[]; constructor(ctx: Context); head(path: string, headers?: Dict): Promise>; get(path: string, headers?: Dict): Promise; delete(path: string, headers?: Dict): Promise; post(path: string, body: any, headers?: Dict): Promise; put(path: string, body: any, headers?: Dict): Promise; patch(path: string, body: any, headers?: Dict): Promise; receive(method: string, path: string, headers: Dict, body: any): Promise; }