/**
 * Shared utilities for the d-pi hub package.
 * @module
 */
/** Type guard: checks if a value is a plain object (not null, not array). */
export function isRecord(value) {
    return typeof value === "object" && value !== null && !Array.isArray(value);
}
/** Extract a string message from an unknown error value. */
export function getErrorMessage(error) {
    return error instanceof Error ? error.message : String(error);
}
//# sourceMappingURL=utils.js.map