import { DevInfo } from '../../../types'; import { InitDevInfoInterceptor } from '../../types/interceptors'; /** * 解析 Matter 设备信息,将 Matter schema / codeIds 转为标准 DP。 * @public * @since 1.15.0 * @param devInfo - Matter 设备信息 * @param ops - 可选亮度、色温范围等配置 * @example * ```ts * import { createMatterKit } from '@ray-js/panel-sdk'; * * const matterKit = createMatterKit(); * const next = matterKit.resolveMatterDevInfo(devInfo); * ``` * @returns {DevInfo} 合并标准功能点后的设备信息 * @typeOverride devInfo DevInfo */ export declare const initMatterDevInfo: (devInfo: DevInfo, ops?: InitMatterDevInfoInterceptorOps) => { name: string; meta: any; icon: string; longitude: string; latitude: string; mac?: string | undefined; devId: string; roomName?: string | undefined; dps: any; attribute: number; baseAttribute: number; dpName: any; ability: number; verSw: string; isShare: boolean; bv: string; uuid: string; activeTime: number; pcc: string; nodeId: string; parentId?: string | undefined; category: string; standSchemaModel?: {} | undefined; productId: string; productVer: string; bizAttribute: number; meshId: string; sigmeshId: string; isLocalOnline: boolean; isCloudOnline: boolean; isOnline: boolean; groupId: string; dpCodes: any; devTimezoneId: string; dpsTime: any; ip?: string | undefined; isVirtualDevice: boolean; isZigbeeInstallCode: boolean; protocolAttribute: number; connectionStatus: number; bluetoothCapability?: string | undefined; isTripartiteMatter: boolean; isGW: boolean; isSupportGroup: boolean; isZigBeeSubDev: boolean; cadv?: string | undefined; isSupportOTA: boolean; iconUrl: string; hasWifi: boolean; switchDp: number; switchDps: number[]; wifiEnableState: number; configMetas: any; isMatter: boolean; isSupportLink: boolean; isSupportAppleHomeKit?: boolean | undefined; attributeString: string; extModuleType: number; isRelayOpen: boolean; isProxyOpen: boolean; isSupportProxyAndRelay: boolean; yuNetState: number; idCodes: Record; codeIds: Record; capability: number; devAttribute: number; schema: import("../../../types").DpSchema[]; panelConfig: import("../../../types").PanelConfig; }; /** * `initMatterDevInfo` / `initMatterDevInfoInterceptor` 的可选配置(非文档站单独页面;与 `createMatterKit` 的 `config` 等同源)。 * @since 1.15.0 * @example * ```ts * import { createMatterKit } from '@ray-js/panel-sdk'; * * createMatterKit({ * debug: false, * config: { brightnessRange: { min: 10, max: 1000 } }, * }); * ``` */ export type InitMatterDevInfoInterceptorOps = { /** * 是否在控制台输出设备信息转换日志。 * @example * ```ts * { debug: true }; * ``` */ debug?: boolean; /** * 标准侧亮度、色温数值范围覆盖。 * @example * ```ts * { * brightnessRange: { min: 10, max: 1000 }, * colorTemperatureRange: { min: 0, max: 1000 }, * }; * ``` */ config?: { /** * 标准侧亮度数值范围 */ brightnessRange?: { /** * 最小值 */ min: number; /** * 最大值 */ max: number; }; /** * 标准侧色温数值范围 */ colorTemperatureRange?: { /** * 最小值 */ min: number; /** * 最大值 */ max: number; }; }; }; /** * 创建 matter-kit 的 `initDevInfo` 拦截器,非 Matter 设备原样透传,Matter 设备调用 {@link initMatterDevInfo}。 * @public * @since 1.15.0 * @param ops - 调试开关与标准侧 `bright_value` / `temp_value` 范围等配置 * @example * ```ts * import { createMatterKit } from '@ray-js/panel-sdk'; * * const matterKit = createMatterKit({ debug: false }); * const interceptor = matterKit.matterDevInfoInterceptor; * ``` * @returns {InitDevInfoInterceptor} SDM `initDevInfo` 拦截器 */ export declare function initMatterDevInfoInterceptor(ops?: InitMatterDevInfoInterceptorOps): InitDevInfoInterceptor;