import { Api } from '@effect-ak/tg-bot-api'; interface TgClientConfig { bot_token: string; base_url?: string; } interface TgFile { readonly content: ArrayBuffer; readonly file_name: string; readonly base64String: () => string; readonly file: () => File; } interface TgBotClient { readonly config: Required; readonly execute: ExecuteMethod; readonly getFile: (input: { fileId: string; type?: string; }) => Promise>; } declare function makeTgBotClient(config: TgClientConfig): TgBotClient; type ClientErrorReason = { _tag: "NotOkResponse"; errorCode?: number; details?: string; } | { _tag: "UnexpectedResponse"; response: unknown; } | { _tag: "ClientInternalError"; cause: unknown; } | { _tag: "UnableToGetFile"; cause: unknown; } | { _tag: "BotHandlerError"; cause: unknown; } | { _tag: "NotJsonResponse"; response: unknown; }; type ClientResult = { readonly ok: true; readonly data: T; } | { readonly ok: false; readonly error: ClientErrorReason; }; interface FileContent { file_content: Uint8Array; file_name: string; } declare const MESSAGE_EFFECTS: { readonly "\uD83D\uDD25": "5104841245755180586"; readonly "\uD83D\uDC4D": "5107584321108051014"; readonly "\uD83D\uDC4E": "5104858069142078462"; readonly "\u2764\uFE0F": "5159385139981059251"; readonly "\uD83C\uDF89": "5046509860389126442"; readonly "\uD83D\uDCA9": "5046589136895476101"; }; type MessageEffect = keyof typeof MESSAGE_EFFECTS; declare const messageEffectIdCodes: MessageEffect[]; type WithMessageEffect = T extends { message_effect_id?: string; } ? Omit & { message_effect_id?: MessageEffect | (string & {}); } : T; type ExecuteMethod = (method: M, input: WithMessageEffect[0]>) => Promise>>; declare function executeTgBotMethod(params: { config: Required; method: M; input: Parameters[0]; }): Promise>>; declare const makePayload: (body: object) => FormData | undefined; export { type ClientErrorReason, type ClientResult, type ExecuteMethod, type FileContent, MESSAGE_EFFECTS, type MessageEffect, type TgBotClient, type TgClientConfig, type TgFile, executeTgBotMethod, makePayload, makeTgBotClient, messageEffectIdCodes };