/** 查询结果(结构化) */ export interface DeviceDataQueryResult { /** 首行必须 [sofagent] 前缀 */ text: string; data: { ok: boolean; reason?: 'not-registered' | 'revoked' | 'invalid-identity' | 'daemon-unavailable' | 'empty-policy' | 'device-not-in-policy' | 'path-not-allowed' | 'invalid-params' | 'not-found' | 'read-failed'; message: string; /** 脱敏后内容(ok=true 时有值) */ content?: string; /** 依据的白名单目录(ok=true 时有值——授权依据回显) */ allowedDir?: string; /** 脱敏命中统计 */ redactHits?: number; /** 审计留痕是否成功 */ auditLogged: boolean; }; } /** * 设备数据面授权读取(G10)。 * * @param args.identity 设备身份码(AgentIdentity JSON——过 gateDevice 闸门) * @param args.path 请求读取的文件路径(设备侧绝对路径) * @param args.maxBytes 读取上限(缺省 64KB——防超大文件打爆返回体) */ export declare function deviceDataQuery(args: { identity: Record; path: string; maxBytes?: number; }): Promise; //# sourceMappingURL=device-data-query.d.ts.map