import type { StreamDeckControlDefinition } from './controlDefinition.js'; import { DeviceModelId } from './id.js'; import type { Dimension } from './id.js'; import type { StreamDeckProperties } from './models/base.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" } /** A transport which a device can be connected over */ export type StreamDeckTransport = 'usb' | 'tcp'; /** The properties of a usb device which identify it as a model */ export interface UsbMatch { vendorId: number; productId: number; /** * If needing to filter by usage */ hidUsage?: number; /** * If needing to filter by interface number */ hidInterface?: number; } /** The optional capabilities of a model */ export interface StreamDeckModelFeatures { /** Whether the device has an nfc reader */ nfcReader: boolean; /** Whether the device can have child devices attached */ childDevices: boolean; } /** * Static information about a model of Stream Deck. * This holds no functions, so can be consumed without pulling in the code needed to drive a device. */ export interface StreamDeckModelInfo { id: DeviceModelId; name: string; manufacturer: string; category: DeviceModelType; /** The usb devices which identify as this model. Empty for models which are not connected over usb */ usb: readonly UsbMatch[]; /** The transports this model can be connected over */ transports: readonly StreamDeckTransport[]; controls: Readonly; /** The extent of the face, which every control's `bounds` is within */ faceSize: Dimension; features: StreamDeckModelFeatures; } /** * A model's public info, paired with the properties needed to drive it. * * The two are built together from a single source, so they cannot describe * different models. The properties are internal and are never exported from * the package index. * @internal */ export interface StreamDeckModelDefinition { readonly info: StreamDeckModelInfo; readonly properties: StreamDeckProperties; } /** * Every known model, as its public info paired with the properties to drive it. * @internal */ export declare const DEVICE_MODEL_DEFINITIONS: Readonly<{ [id in DeviceModelId]: StreamDeckModelDefinition; }>; /** * Static information about every known model. * @experimental Will become DEVICE_MODELS in v8 */ export declare const DEVICE_MODEL_INFO: Readonly<{ [id in DeviceModelId]: StreamDeckModelInfo; }>; /** * Get the information about a model, if it is known */ export declare function getModelInfo(id: DeviceModelId): StreamDeckModelInfo | undefined; /** * Find the model which a usb device identifies as, if any. * The `usage` and `hidInterface` are only checked when both the model requires it, and a value is provided. */ export declare function findModelByUsb(vendorId: number, productId: number, usage?: number, hidInterface?: number): StreamDeckModelInfo | undefined; /** * @deprecated Use `DEVICE_MODEL_INFO[id].name` instead */ export declare const MODEL_NAMES: { [key in DeviceModelId]: string; }; //# sourceMappingURL=modelInfo.d.ts.map