export interface ThingData { [key: string]: string | number | Date | string[] | undefined; } /** * 创建一个新的 Thing */ export declare function createThing(containerUrl: string, thingUrl: string, data: ThingData, fetchFn?: typeof fetch): Promise; /** * 读取一个 Thing */ export declare function readThing(resourceUrl: string, thingUrl: string, fetchFn?: typeof fetch): Promise; /** * 更新一个 Thing */ export declare function updateThing(resourceUrl: string, thingUrl: string, data: ThingData, fetchFn?: typeof fetch): Promise; /** * 删除一个 Thing */ export declare function deleteThing(resourceUrl: string, thingUrl: string, fetchFn?: typeof fetch): Promise; /** * 批量操作 Things */ export declare function batchThingOperations(resourceUrl: string, operations: Array<{ type: 'create' | 'update' | 'delete'; thingUrl: string; data?: ThingData; }>, fetchFn?: typeof fetch): Promise; //# sourceMappingURL=thing-operations.d.ts.map