UNPKG

homebridge

Version:
32 lines 1.17 kB
/** * KeypadInput Cluster Behavior * * Handles remote-control key presses for media players. */ import { KeypadInputServer } from '@matter/main/behaviors/keypad-input'; import { KeypadInput } from '@matter/main/clusters/keypad-input'; /** * Default KeypadInput Server. * * matter.js's base KeypadInputServer leaves sendKey unimplemented (it throws * NotImplementedError), so a player without a plugin handler would advertise * the keypad and fail every press. Answering UnsupportedKey is the honest * response for a device that has nowhere to send the key. */ export declare class DefaultKeypadInputServer extends KeypadInputServer { sendKey(_request: KeypadInput.SendKeyRequest): Promise<KeypadInput.SendKeyResponse>; } /** * Custom KeypadInput Server that calls plugin handlers. */ export declare class HomebridgeKeypadInputServer extends DefaultKeypadInputServer { /** * Get the registry for this behavior's endpoint */ private getRegistry; /** * Handle 'sendKey' command */ sendKey(request: KeypadInput.SendKeyRequest): Promise<KeypadInput.SendKeyResponse>; } //# sourceMappingURL=KeypadInputBehavior.d.ts.map