import { isAgentFileUpload } from './agent-uploads.js';
import { isFocusedRange, isRangeRestriction } from './user-turn-enrichments.js';
export function isUserMessageUiMetadata(value) {
    if (!value || typeof value !== 'object')
        return false;
    const candidate = value;
    return ((candidate.createdAt === undefined || typeof candidate.createdAt === 'number') &&
        (candidate.interactionMode === undefined || typeof candidate.interactionMode === 'string') &&
        (candidate.fileUploads === undefined ||
            (Array.isArray(candidate.fileUploads) && candidate.fileUploads.every(isAgentFileUpload))) &&
        (candidate.focusedRange === undefined || isFocusedRange(candidate.focusedRange)) &&
        (candidate.rangeRestrictions === undefined ||
            (Array.isArray(candidate.rangeRestrictions) &&
                candidate.rangeRestrictions.every(isRangeRestriction))));
}
//# sourceMappingURL=user-message-ui-metadata.js.map