import { TelegramClient } from '@mtcute/core/client.js'; import { UpdateContext } from './base.js'; import { PreCheckoutQuery } from '@mtcute/core'; /** * Context of a pre-checkout query update * * This is a subclass of {@link PreCheckoutQuery}, so all its fields are also available. */ export declare class PreCheckoutQueryContext extends PreCheckoutQuery implements UpdateContext { readonly client: TelegramClient; readonly _name: "pre_checkout_query"; constructor(client: TelegramClient, query: PreCheckoutQuery); /** Approve the query */ approve(): Promise; /** Decline the query, optionally with an error */ decline(error?: string): Promise; }