import { DpSchema } from '../../../../types'; import { PublishDpsInterceptor } from '../../../types'; export type DevPropInterceptorOptions = { /** * 黑名单 dp,不会同步到云端 * @typeOverride blackDpCodes string[] */ blackDpCodes?: (keyof T)[]; /** * 首次进入时,默认的设备状态, 支持异步初始化 * @typeOverride defaultState DpState */ defaultState?: Partial> | ((schema: DpSchema[]) => Partial>) | ((schema: DpSchema[]) => Promise>>); /** * 下发节流,毫秒,默认为 0 * 如果设置为 0,则不进行节流。 * @defaultValue * 0 */ throttle?: number; /** * 是否开启调试日志,默认 false * @internal * @defaultValue * false */ debug?: boolean; }; export interface GetDpsFromDevPropsOps { devInfo: any; } export declare const createDevPropInterceptor: (options: DevPropInterceptorOptions) => PublishDpsInterceptor;