export declare type Fn = (...params: any[]) => any; export declare type UnPromise = T extends Promise ? U : T; export declare type PromiseReturnType = Promise>>; export interface TeleRequest { jsonrpc: '2.0'; method: string; params?: Parameters; id: number | string; } export interface TeleResponseError { code: number; message: string; data?: unknown; } export interface TeleResponse { jsonrpc: '2.0'; result?: UnPromise>; error?: TeleResponseError; id: number | string | null; } //# sourceMappingURL=types.d.ts.map