import { Bot, IPassportElementError, PassportElementError } from "./_internals.js"; /** Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. */ export declare class PassportElementErrorDataField extends PassportElementError implements IPassportElementErrorDataField { constructor(data: IPassportElementErrorDataField, token?: string | Bot); source: "data"; type: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address"; field_name: string; data_hash: string; message: string; } /** Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. */ export interface IPassportElementErrorDataField extends IPassportElementError { /** Error source, must be *data* */ source: "data"; /** The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address” */ type: "personal_details" | "passport" | "driver_license" | "identity_card" | "internal_passport" | "address"; /** Name of the data field which has the error */ field_name: string; /** Base64-encoded data hash */ data_hash: string; /** Error message */ message: string; }