import type { RuntimeEnv } from "../runtime.js"; export type TelegramApiLogger = (message: string) => void; type TelegramApiLoggingParams = { operation: string; fn: () => Promise; runtime?: RuntimeEnv; logger?: TelegramApiLogger; shouldLog?: (err: unknown) => boolean; }; export declare function withTelegramApiErrorLogging({ operation, fn, runtime, logger, shouldLog, }: TelegramApiLoggingParams): Promise; export {};