import { z } from 'zod';
/**
 * Entity kinds for data formats.
 *
 * Kept separate from `NormalizedSymbolKind` because these are not code symbols:
 * a JSON property has no call graph, no inheritance, and no signature, and
 * flattening it onto `variable` would let it be mistaken for one.
 */
export const FormatEntityKindSchema = z.enum([
    'object',
    'array',
    'array-item',
    'property',
    'section',
    'table',
    'array-table',
    'heading',
    'row',
    'document',
]);
/** Trim trailing blank lines from a span so an entity ends at its last real line. */
export function trimTrailingBlank(lines, endLine, startLine) {
    let end = endLine;
    while (end > startLine && (lines[end - 1] ?? '').trim() === '')
        end--;
    return end;
}
//# sourceMappingURL=types.js.map