/**
 * Living Docs User Story File Type Definitions
 * Includes format preservation metadata (T-034A)
 */
/**
 * Check if US file has format preservation enabled
 */
export function hasFormatPreservation(usFile) {
    return usFile.format_preservation === true;
}
/**
 * Check if US is external (based on ID suffix)
 */
export function isExternalUS(usId) {
    return usId.toUpperCase().endsWith('E');
}
/**
 * Extract origin from US metadata
 */
export function getOrigin(usFile) {
    if (usFile.origin) {
        return usFile.origin;
    }
    // Infer from ID
    return isExternalUS(usFile.id) ? 'external' : 'internal';
}
//# sourceMappingURL=living-docs-us-file.js.map