import { ErrorUnion, OkUnion } from '../outputs'; /** * Sets the result of a pre-checkout query; for bots only * @param {Object} params * @param {string} [params.preCheckoutQueryId] - Identifier of the pre-checkout query * @param {string} [params.errorMessage] - An error message, empty on success * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type AnswerPreCheckoutQueryMethod = (params: AnswerPreCheckoutQueryParams, state?: Record) => Promise; export interface AnswerPreCheckoutQueryParams { /** Identifier of the pre-checkout query */ preCheckoutQueryId?: string; /** An error message, empty on success */ errorMessage?: string; }