/** * Typed errors for the v2 posting path so callers can react precisely. */ export { RecipeRefusalError } from './core/core.errors.js'; export type { TRecipeRefusalCode, IRecipeRefusalDetails } from './core/core.errors.js'; export declare class ImmutableEntryError extends Error { constructor(entryId: string); } export declare class PeriodLockedError extends Error { constructor(skrType: string, period: string); } export declare class SequenceConflictError extends Error { constructor(skrType: string, fiscalYear: number); } export declare class NotImplementedError extends Error { constructor(feature: string); } export declare class TransactionsUnsupportedError extends Error { constructor(detail: string); } /** One (skrType, accountNumber, reference) key held by more than one OposMeta document. */ export interface IOposMetaDuplicate { skrType: string; accountNumber: string; reference: string; count: number; } /** * The storage migration found dunning metadata recorded more than once for one * open item, so the unique index over OposMeta cannot be created. Nothing is * deleted: resolve the duplicates by hand, then start skr again. */ export declare class OposMetaDuplicatesError extends Error { readonly duplicates: IOposMetaDuplicate[]; constructor(duplicates: IOposMetaDuplicate[]); } /** * A classic write that cannot map 1:1 onto the hashed journal: it would write * the frozen v1 shape (a standalone Transaction, an unposted or in-place * posted JournalEntry, a mutated original on reversal), which no balance, * report or export reads. The message names the API that books it instead. */ export declare class RetiredLedgerWriteError extends Error { constructor(method: string, reason: string, replacement: string); } /** * The ledger migration met stored data it cannot book on without guessing: a * legacy transaction already imported more than once or with other content, * a sequence counter ahead of the journal, or a chain that does not verify. * Nothing is changed or deleted: the issues name what to resolve by hand * before skr is started again. */ export declare class LedgerMigrationConflictError extends Error { readonly issues: string[]; constructor(issues: string[]); } /** * A migration step stopped because its lease passed to another process, or * could not be renewed before it ran out. Every step resumes where it * stopped: start skr again once the other process is done. */ export declare class MigrationLeaseLostError extends Error { constructor(stepId: string, detail: string); }