import { NotPromise } from "./utils/inedx"; export type ReqData = { /** * 请求数据头 */ header: { [key: string]: any; /** 会话id */ sid: string; /** 设备id */ did: string; /** 来源地址 */ href: string; /** jwt数据,需要启用Authorization服务 */ jwtPayload?: Record; }; /** * 请求数据 */ data: T; }; export declare const RSPDATA_FLAG: unique symbol; export type RspData = { [RSPDATA_FLAG]: true; header: { /** 状态码 */ code: string; /** 返回提示信息 */ msg?: string | Record; }; data?: T; }; export declare function Ok(data?: NotPromise): RspData; export declare function ActionError(message?: string | Record, errorCode?: string, data?: T): RspData; export declare function isRspData(data: any): any; export declare function isErrorData(data: any): any;