/// /// import type { ProtocolResponse } from '../ProtocolEvent'; import { ErrorCode } from '../../Constants'; export declare class HandshakeV3Response implements ProtocolResponse { static fromJson(data: { magic: string; protocolVersion: string; revisionTimestamp: Date; }): HandshakeV3Response; static fromBuffer(buffer: Buffer): HandshakeV3Response; /** * Convert the data into a buffer */ toBuffer(): Buffer; success: boolean; readOffset: number; data: { /** * The Roku Brightscript debug protocol identifier, which is the following 64-bit value :0x0067756265647362LU. * * This is equal to 29120988069524322LU or the following little-endian value: b'bsdebug\0. */ magic: string; /** * A semantic version string (i.e. `2.0.0`) */ protocolVersion: string; /** * A platform-specific implementation timestamp (in milliseconds since epoch [1970-01-01T00:00:00.000Z]). * * As of BrightScript debug protocol 3.0.0 (Roku OS 11.0), a timestamp is sent to the debugger client in the initial handshake. * This timestamp is platform-specific data that is included in the system software of the platform being debugged. * It is changed by the platform's vendor when there is any change that affects the behavior of the debugger. * * The value can be used in manners similar to a build number, and is primarily used to differentiate between pre-release builds of the platform being debugged. */ revisionTimestamp: Date; packetLength: number; requestId: number; errorCode: ErrorCode; }; }