export declare enum TaskStatus { READY = "ready", PROCESSING = "processing", } export declare enum IOptionType { ImageToTextTask = "ImageToTextTask", NoCaptchaTaskProxyless = "NoCaptchaTaskProxyless", NoCaptchaTask = "NoCaptchaTask", } export interface ITaskResponse { errorId: number; status: TaskStatus; solution: { text?: string; url?: string; gRecaptchaResponse?: string; }; cost: number; ip: string; createTime: number; endTime: number; solveCount: string; } export declare class Anticaptcha { clientKey: string; url: string; proxyAddress: any; proxyLogin: any; proxyPassword: any; proxyPort: any; proxyType: string; websiteKey: any; websiteSToken: any; websiteUrl: any; userAgent: string; case: any; math: any; maxLength: any; minLength: any; numeric: any; phrase: any; languagePool: any; softId: any; constructor(clientKey: string); getBalance(): Promise; getTaskSolution(taskId: string, currentAttempt?: number, tickCb?: (response: ITaskResponse) => any): Promise; createTaskProxyless(): Promise; createImageToTextTask(): Promise; createTask(type?: IOptionType, taskData?: any): Promise; private getPostData(type); private jsonPostRequest(methodName, data); }