import type { BuiltCommand, CommandDefinition, MessagePattern } from './types.js'; /** * Get the message pattern from configuration */ export declare function getMessagePattern(): MessagePattern; /** * Get a command definition by name */ export declare function getCommandDefinition(commandName: string): CommandDefinition | undefined; /** * Get all available command names */ export declare function getAvailableCommands(): string[]; /** * Calculate checksum for BLE command (2 bytes) * * The checksum is a 16-bit sum of all bytes, returned as little-endian hex. * * @param message - Hex string to calculate checksum for * @returns 4-character hex string (2 bytes, little-endian) */ export declare function calculateChecksum(message: string): string; /** * Build a BLE-style command message * * Format: preamble(ab) + src(03) + destination + opcode + data_length + data + checksum * * @param commandName - Name of the command from the commands configuration * @param data - Optional hex data string to include in the command * @returns Built command object or undefined if command not found */ export declare function buildCommand(commandName: string, data?: string): BuiltCommand | undefined; /** * Get cleaning mode duration from configuration */ export declare function getCleaningModeDuration(mode: string): number | undefined; /** * Get all cleaning modes with durations */ export declare function getCleaningModes(): Record; /** * Validate a command name exists in the configuration */ export declare function isValidCommand(commandName: string): boolean; //# sourceMappingURL=commandBuilder.d.ts.map