@oletizi/lib-device-uuid
Version:
Cross-platform device UUID detection for Akai sampler backup tools
34 lines (33 loc) • 1.22 kB
TypeScript
import type { DeviceDetectorInterface, DeviceInfo } from '../types.js';
/**
* macOS device detector using diskutil
*
* This detector uses the diskutil command-line tool to extract device information
* including volume UUID, label, device path, and filesystem type.
*/
export declare class MacOSDetector implements DeviceDetectorInterface {
/**
* Detect device information for a mount path on macOS
* @param mountPath - The path where the device is mounted
* @returns Device information extracted from diskutil
* @throws Error if platform is not macOS or device cannot be detected
*/
detectDevice(mountPath: string): Promise<DeviceInfo>;
/**
* Parse diskutil info output and extract device information
* @param output - Raw output from diskutil info command
* @param mountPath - Original mount path for reference
* @returns Structured device information
*/
private parseDiskutilOutput;
/**
* Check if macOS platform is supported
* @returns true if running on darwin platform
*/
isSupported(): boolean;
/**
* Get the platform identifier
* @returns 'darwin' platform constant
*/
getPlatform(): "darwin";
}