/** * What `validateJournalDraft` and `validatePostedEntry` refuse through: each * broken rule as an error and as the issue beside it, in the same order. */ import type { IEntryIssue, TEntryIssueCode } from './core.types.js'; export interface IEntryRefusals { errors: string[]; issues: IEntryIssue[]; refuse: (code: TEntryIssueCode, field: string, message: string, lineIndex?: number) => void; /** takes over issues another validation found, each with its error */ adopt: (issues: readonly IEntryIssue[]) => void; } export declare const entryRefusals: () => IEntryRefusals; /** the path of a line's field: `lines.2.buKey` */ export declare const lineFieldOf: (indexArg: number, fieldArg: string) => string;