export const CH = { snapshot: "display:snapshot", moveTo: "display:move-to", center: "display:center", setMode: "display:set-mode", minimize: "display:minimize", toggleMaximize: "display:toggle-maximize", closeWindow: "display:close", refresh: "display:refresh", }; export function assertDisplayIdReq(value) { if (typeof value !== "object" || value === null) { throw new Error("BAD_DISPLAY_REQ"); } const id = value.displayId; if (typeof id !== "number" || !Number.isInteger(id) || id <= 0) { throw new Error("BAD_DISPLAY_ID"); } } export function assertModeReq(value) { if (typeof value !== "object" || value === null) { throw new Error("BAD_MODE_REQ"); } const mode = value.mode; if (mode !== "normal" && mode !== "maximized" && mode !== "simple" && mode !== "kiosk" && mode !== "fullscreen") { throw new Error("BAD_MODE"); } } //# sourceMappingURL=ipc.js.map