UNPKG

dirigera

Version:

A TypeScript client for IKEA's DIRIGERA smart home hub

23 lines (22 loc) 701 B
import type { Got } from 'got'; import type { Scene } from '../types/Scene.ts'; declare const _default: (got: Got) => { list(): Promise<Scene[]>; get({ id }: { id: string; }): Promise<Scene>; trigger({ id }: { id: string; }): Promise<void>; undo({ id }: { id: string; }): Promise<void>; create({ info, type, actions, triggers, }: Pick<Scene, "info" | "type" | "actions" | "triggers">): Promise<{ id: string; }>; delete({ id }: { id: string; }): Promise<void>; update({ id, info, type, actions, triggers, }: Pick<Scene, "id" | "info" | "type" | "actions" | "triggers">): Promise<void>; }; export default _default;