/** * DATEV Posting Keys (Buchungsschlüssel) for German Accounting * * Posting keys control automatic VAT booking and are automatically checked * in German tax audits (Betriebsprüfungen). Using incorrect posting keys * can have serious tax consequences. * * Reference: DATEV Buchungsschlüssel-Verzeichnis */ import type { TPostingKey, IPostingKeyRule } from './skr.types.js'; /** * Posting key definitions with validation rules */ export declare const POSTING_KEY_RULES: Record; /** * Validate posting key for a journal entry line */ export declare function validatePostingKey(postingKey: TPostingKey, accountNumber: string, amount: number, vatAmount?: number, taxScenario?: string): { isValid: boolean; errors: string[]; warnings: string[]; }; /** * Get posting key description */ export declare function getPostingKeyDescription(postingKey: TPostingKey): string; /** * Get appropriate posting key for a transaction */ export declare function suggestPostingKey(params: { vatRate: number; taxScenario?: string; isPayment?: boolean; }): TPostingKey; /** * Validate all posting keys for consistency */ export declare function validatePostingKeyConsistency(lines: Array<{ postingKey: TPostingKey; accountNumber: string; debit?: number; credit?: number; vatAmount?: number; }>): { isValid: boolean; errors: string[]; warnings: string[]; }; /** * Check if posting key requires automatic VAT booking */ export declare function requiresAutomaticVAT(postingKey: TPostingKey): boolean; /** * Get all valid posting keys */ export declare function getAllPostingKeys(): TPostingKey[];