/**
 * Data validation utilities
 */
/**
 * Validate chat structure
 * @param {unknown} chat - Value to validate as chat
 * @returns {boolean} True if value is a valid chat
 */
export function isValidChat(chat) {
    return (typeof chat === 'object' &&
        chat !== null &&
        typeof chat.id === 'string' &&
        typeof chat.name === 'string' &&
        (chat.createTime === null ||
            typeof chat.createTime === 'string'));
}
/**
 * Validate non-empty string
 * @param {unknown} value - Value to validate as non-empty string
 * @returns {boolean} True if value is a non-empty string
 */
export function isNonEmptyString(value) {
    return typeof value === 'string' && value.trim().length > 0;
}
//# sourceMappingURL=validation.js.map
