import { CustomRequestResultUnion, ErrorUnion } from '../outputs'; /** * Sends a custom request; for bots only * @param {Object} params * @param {string} [params.method] - The method name * @param {string} [params.parameters] - JSON-serialized method parameters * @param {Object} state * @returns {CustomRequestResultUnion | ErrorUnion} */ export declare type SendCustomRequestMethod = (params: SendCustomRequestParams, state?: Record) => Promise; export interface SendCustomRequestParams { /** The method name */ method?: string; /** JSON-serialized method parameters */ parameters?: string; }