/** * Aliyun API */ export declare namespace Aliyun { /** * 物流面单信息提取 * @url https://help.aliyun.com/zh/address-purification/addrpapi/developer-reference/logistics-information-extraction */ export interface ExtractExpress { RequestId: string /** 正常时返回 */ Data?: string /** 报错时返回 */ Code?: string /** 报错时返回 */ Message?: string /** 报错时返回 */ HostId?: string /** 报错时返回 */ Recommend?: string } /** * Need JSON.parse() to get from `ExtractExpress.Data` */ export interface ExtractExpressData { /** 提取内容,当传入的地址无效时,会直接返回空对象 */ express_extract: | { house_info: string poi_info: string town: string city: string district: string /** 电话号码 */ tel: string /** 地址信息 */ addr_info: string /** 姓名 */ per: string prov: string } // biome-ignore lint/complexity/noBannedTypes: expected empty object | {} /** 状态,'OK',当传入的地址无效时,依然返回 OK 😅 */ status: string /** 算法处理耗时 */ time_used: { rt: { basic_chunking: number segment: number address_correct: number complete: number express_extract: number address_search: number structure: number } start: number } } }