import { ErrorUnion, OkUnion } from '../outputs'; /** * Answers a custom query; for bots only * @param {Object} params * @param {string} [params.customQueryId] - Identifier of a custom query * @param {string} [params.data] - JSON-serialized answer to the query * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type AnswerCustomQueryMethod = (params: AnswerCustomQueryParams, state?: Record) => Promise; export interface AnswerCustomQueryParams { /** Identifier of a custom query */ customQueryId?: string; /** JSON-serialized answer to the query */ data?: string; }