/** * Pure journal validation. No chart lookups, no persistence — structural and * arithmetic invariants only. Account-existence checks belong to the * persistence layer, which owns the chart of accounts. */ import type { IJournalDraft, IValidationResult } from './core.types.js'; import type { IAccountPolicy } from './core.accountpolicy.js'; export { DATEV_MAX_BELEGFELD } from './core.belegfeld.js'; export declare const DATEV_MAX_BUCHUNGSTEXT = 60; /** * Validate (and normalize) a journal draft. * * Normalization: negative amounts are flipped to the opposite side so the * ledger only ever stores positive amounts with an explicit side. A draft * marked `generalumkehr` is not normalized: its lines keep their sides and * must state positive amounts, which the mark makes count negative; a * negative amount there is refused, since it would negate twice. * Balance check is EXACT — integer cents, no tolerance. * * Each error has its issue (`IEntryIssue`) in `issues`, in the same order: * the rule's code, the field and the line. */ export declare function validateJournalDraft(draft: IJournalDraft, policy?: IAccountPolicy): IValidationResult;