const MAX_CHARS = 3200;
export function renderEnriched(input) {
    const { originalContent, signatures, testSample } = input;
    const lines = [
        originalContent.trimEnd(),
        '',
        '---',
        '',
        '## Real Signatures (auto-extracted by SPEC-696)',
    ];
    for (const sig of signatures) {
        if (sig.exports.length === 0 && sig.interfaces.length === 0) {
            continue;
        }
        lines.push('', `### \`${sig.relPath}\``, '```typescript');
        for (const exp of sig.exports.slice(0, 5)) {
            lines.push(exp);
        }
        for (const iface of sig.interfaces.slice(0, 3)) {
            lines.push(iface);
        }
        lines.push('```');
    }
    if (testSample) {
        lines.push('', '## Test Patterns (from existing tests)', `- Mock style: \`${testSample.mockStyle}\``, `- Has \`beforeEach\`: ${String(testSample.hasBeforeEach)}`);
    }
    const result = lines.join('\n');
    if (result.length <= MAX_CHARS) {
        return result;
    }
    return (result.slice(0, MAX_CHARS) +
        '\n\n> [truncated — spec too large, enrich remaining files manually]');
}
//# sourceMappingURL=render-enriched.js.map