/** * Tax Answer / QA Markdown Renderer * * `TaxAnswer` / `QaJirei` を Markdown 文字列に整形する。 * 出典 URL・取得時刻・参考資料の旨を末尾に付与する。 */ import type { QaJirei } from '../types/qa.js'; import type { TaxAnswer } from '../types/tax-answer.js'; /** * 応答をどこから返したか(Issue #29)。 * * - `'db'`: ローカル DB(`--bulk-download-*` で取り込んだもの)から返した * - `'live'`: この呼び出しで国税庁サイトから取得した */ export type DocumentSource = 'db' | 'live'; export declare const SOURCE_LABEL: Record; /** * タックスアンサーを Markdown に整形する。 * * 節の見出しの行は、`level` が 3 の節(ページの h3)は `### `、それ以外(h2)は `## `。 * 段落の無い節(次の見出しが h3 の h2)は見出しの行だけを出す(SPEC-NTA-GET-TAX-ANSWER-007・019)。 */ export declare function renderTaxAnswerMarkdown(t: TaxAnswer, source?: DocumentSource, orphanedAt?: string): string; /** 質疑応答事例を Markdown に整形 */ export declare function renderQaMarkdown(q: QaJirei, source?: DocumentSource, orphanedAt?: string): string; //# sourceMappingURL=tax-answer-render.d.ts.map