UNPKG

balena-sdk

Version:
10 lines (9 loc) 610 B
import type { Device } from '..'; import type { AtLeast } from '../../typings/utils'; export declare const LOCAL_MODE_ENV_VAR = "RESIN_SUPERVISOR_LOCAL_MODE"; export declare const LOCAL_MODE_SUPPORT_PROPERTIES: readonly ["os_version", "os_variant", "supervisor_version", "last_connectivity_event"]; export declare const checkLocalModeSupported: (device: Pick<Device["Read"], (typeof LOCAL_MODE_SUPPORT_PROPERTIES)[number]>) => void; export declare const getLocalModeSupport: (device: AtLeast<Device["Read"], (typeof LOCAL_MODE_SUPPORT_PROPERTIES)[number]>) => { supported: boolean; message: string; };