/** * 猎聘招聘者端 (LPT) 工具函数 */ import { Page } from 'puppeteer-core'; export declare const LIEPIN_LPT_API = "https://api-lpt.liepin.com"; /** * 触发猎聘风控(验证码 / 频率限制 / 反爬虫挑战)时抛出。 * 上层遇到此错误应立即停止重试,等待或让用户在浏览器中手动完成验证, * 连续换方案试探只会加重风控。 */ export declare class RiskControlError extends Error { constructor(message: string); } /** LPT API 请求 */ export declare function lptFetch(page: Page, url: string, opts?: { body?: string; clientId?: string; }): Promise; /** 导航到 LPT 页面 */ export declare function navigateToLpt(page: Page, path?: string, waitSeconds?: number): Promise; /** 读取 imId */ export declare function readLptImId(page: Page): Promise; //# sourceMappingURL=lpt-utils.d.ts.map