/** * HomeKit restricts the Name characteristic (HAP-NodeJS warns and iOS can * refuse to add the accessory otherwise): only letters, numbers, spaces, * apostrophes, commas, periods, and hyphens are allowed, and the name must * start and end with a letter or number. VeSync factory device names often * violate this (e.g. "OasisMistâ„¢ 4.5L"). * * Unicode letters and digits are permitted, so accented names survive intact. */ export declare const DEFAULT_ACCESSORY_NAME = "VeSync Device"; /** * Returns true when a name already satisfies HomeKit's Name rules. */ export declare function isValidHomeKitName(name: string): boolean; /** * Reduce an arbitrary device name to a HomeKit-legal one: * strip disallowed symbols, collapse whitespace, and trim leading/trailing * non-alphanumerics. Falls back when nothing usable remains. */ export declare function sanitizeDeviceName(name: string, fallback?: string): string; //# sourceMappingURL=sanitize-name.d.ts.map