UNPKG

@elgato-stream-deck/core

Version:

An npm module for interfacing with the Elgato Stream Deck

49 lines 2 kB
import type { HIDDevice } from './hid-device.js'; import { DeviceModelId } from './id.js'; import type { StreamDeck } from './types.js'; import type { OpenStreamDeckOptions } from './models/base.js'; import type { PropertiesService } from './services/properties/interface.js'; export * from './types.js'; export * from './id.js'; export * from './controlDefinition.js'; export type { PreparedBuffer } from './preparedBuffer.js'; export type { HIDDevice, HIDDeviceInfo, HIDDeviceEvents, ChildHIDDeviceInfo } from './hid-device.js'; export type { OpenStreamDeckOptions } from './models/base.js'; export { StreamDeckProxy } from './proxy.js'; export type { PropertiesService } from './services/properties/interface.js'; export { uint8ArrayToDataView } from './util.js'; export { parseAllFirmwareVersionsHelper } from './services/properties/all-firmware.js'; /** Elgato vendor id */ export declare const VENDOR_ID = 4057; /** Corsair vendor id */ export declare const CORSAIR_VENDOR_ID = 6940; export declare enum DeviceModelType { STREAMDECK = "streamdeck", PEDAL = "pedal", NETWORK_DOCK = "network-dock" } export interface DeviceModelSpec { id: DeviceModelId; type: DeviceModelType; productIds: number[]; vendorId: number; productName: string; /** * If needing to filter by usage */ hidUsage?: number; /** * If needing to filter by interface number */ hidInterface?: number; factory: (device: HIDDevice, options: Required<OpenStreamDeckOptions>, tcpPropertiesService?: PropertiesService) => StreamDeck | Promise<StreamDeck>; hasNativeTcp: boolean; } /** List of all the known models, and the classes to use them */ export declare const DEVICE_MODELS2: { [key in DeviceModelId]: Omit<DeviceModelSpec, 'id' | 'productName'>; }; /** @deprecated maybe? */ export declare const DEVICE_MODELS: DeviceModelSpec[]; export declare function getStreamDeckModelName(modelId: DeviceModelId): string; //# sourceMappingURL=index.d.ts.map