/** * Booking recipes of a business's securities and derivatives — pure builders, * like `core.recipes.ts`: (input, policy) => IJournalDraft, integer cents. * They book what a securities ledger decided (@fin.cx/depot's movements: what * units cost and brought, the book value released, the kind of result) on the * accounts of the securities roles (@fin.cx/chartdata `TSecuritiesRole`), * resolved for the books by `securitiesAccountOf`: the account DATEV's chart * keeps for the role and tax rule, or the books' individual account that names * the role (`IAccountPolicy.individualAccounts`); for a role DATEV keeps no * account of its own for, the account of its position * (`SECURITIES_POSITION_ACCOUNTS`); the results the law keeps apart — of * Termingeschäfte (§ 15 Abs. 4 Satz 3 EStG) and of short sales — only on an * individual account, else the recipe refuses (`securities_account_missing`). * * By default, the § 8b KStG accounts (`estg_3_40_kstg_8b`) take a share's * sale, its costs, * its write-downs and write-ups whatever the holding (§ 8b Abs. 2 and 3 KStG), * and the dividends of a holding of at least 10 % at the start of the calendar * year (§ 8b Abs. 1 and 4 KStG); a fund's (§ 16 Abs. 3 InvStG: the fund's tax * lives in the depot's tax ledger), a bond's and anything else's take the * ordinary accounts. An explicit `taxTreatment` overrides this default for * sales and exchanges, including their disposal costs, not their holdings. * Every line pairs with its counter account (DATEV * Gegenkonto); a booking that moves money moves it on the depot's cash * account the caller names (`cashAccount`). */ import * as plugins from './core.plugins.js'; import type { IJournalDraft, TCents, TSKRType } from './core.types.js'; import { type IAccountPolicy } from './core.accountpolicy.js'; /** What an account books of a business's securities (@fin.cx/chartdata `TSecuritiesRole`). */ export type TSecuritiesRole = plugins.chartdata.TSecuritiesRole; /** The income tax rule an account is kept for (@fin.cx/chartdata `TTaxRule`): `estg_3_40_kstg_8b`. */ export type TTaxRule = plugins.chartdata.TTaxRule; /** * Where a role DATEV's standard charts keep no account of its own for is * booked when the books declare no individual account for it: on the account * of its position (DATEV Kontenrahmen SKR 03, Art.-Nr. 11174, and SKR 04, * Art.-Nr. 11175, gültig für 2026). Options bought, a variation margin paid, * accrued interest bought with a bond and the claim to securities lent are * other assets (§ 266 Abs. 2 B.II.4 HGB, "Sonstige Vermögensgegenstände"); * a writer's obligation, a variation margin received, securities owed after a * short sale and cash collateral to give back other liabilities (§ 266 Abs. 3 * C.8, "Sonstige Verbindlichkeiten"); a writer's premium earned other * operating income (§ 275 Abs. 2 Nr. 4, "Sonstige Erträge", "Sonstige * betriebliche Erträge"). The results of Termingeschäfte and of short sales and * the compensations paid on securities sold short take no account of their * position: the books keep them apart on individual accounts. */ export declare const SECURITIES_POSITION_ACCOUNTS: Readonly>>>>; /** * The account the books book a securities role on, under a tax rule or none: * the account DATEV's chart keeps for it, or the books' individual account * that names it (`booksChartOf`); without one, the account of its position * (`SECURITIES_POSITION_ACCOUNTS`, no tax rule only). Refuses a role neither * gives (`securities_account_missing`), naming the parent chartdata suggests * for its individual account and the numbers free after it. */ export declare function securitiesAccountOf(policy: IAccountPolicy, role: TSecuritiesRole, taxRule?: TTaxRule): string; /** * The account securities of a classification and kind are held on: a current * asset's on the one account of securities held as current assets, a fixed * asset's on the account of its kind (shares, bonds, anything else). */ export declare function securitiesHoldingAccountOf(policy: IAccountPolicy, classification: TSecuritiesClassification, kind: TSecurityKind): string; /** What every securities booking states. */ export interface ISecuritiesBookingBase { /** the booking day: the trade day (Schlusstag), the day of a payment, a closing date */ date: Date; description: string; /** Belegfeld 1 of the lines: the broker's trade or transaction id */ reference?: string; /** the Beleg: the broker's statement or confirmation */ docLink?: string; } /** Whether a security is a fixed asset, held to serve the business lastingly (§ 247 Abs. 2 HGB), or a current one. */ export type TSecuritiesClassification = 'fixed' | 'current'; /** * What a security is, which decides its holding account and its default tax: * - `share`: a share, whose sale, write-down and write-up default to § 8b KStG's * whatever the holding (Abs. 2, 3); * - `fund`: an investment fund's units (InvStG), never § 8b (§ 16 Abs. 3 InvStG); * - `bond`: a bond, interest-bearing; * - `other`: any other security (a certificate, a warrant held as a security). */ export type TSecurityKind = 'share' | 'fund' | 'bond' | 'other'; export type TSecuritiesTaxTreatment = 'ordinary' | 'estg_3_40_kstg_8b'; export interface ISecuritiesPurchaseInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; kind: TSecurityKind; /** what the units cost, commissions and taxes included (§ 255 Abs. 1 HGB): the depot's `open.amountCents` */ costCents: TCents; /** of it, the book value of a call exercised into the purchase (the depot's `open.transferredCents`), which leaves the options bought; 0 where absent */ transferredCents?: TCents; /** * the account the purchase is paid from: the depot's cash account; for units * that come in without money through the depot, the account they come in * against (a contribution: the owner's private account) */ cashAccount: string; } export interface ISecuritiesSaleInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; kind: TSecurityKind; /** the disposal's tax treatment; absent: a share's § 8b treatment, anything else's ordinary treatment; never changes the holding account */ taxTreatment?: TSecuritiesTaxTreatment; /** what the sale or redemption brought, net of its costs: the depot's `close.amountCents`; with a put exercised into the sale, less its book value */ proceedsCents: TCents; /** the costs of the sale in it (commission, taxes): the depot's `close.costsCents` */ costsCents: TCents; /** the book value of the units sold: the depot's `close.bookCents` */ bookCents: TCents; /** the book value of a put exercised into the sale, negative (the depot's `close.transferredCents`), which leaves the options bought; 0 where absent */ transferredCents?: TCents; /** * the account what the sale brought is booked on: the depot's cash account; * for units that leave without money through the depot, the account they * leave against (a withdrawal at their value: the owner's private account; a * sale settled elsewhere: the buyer's receivable) */ cashAccount: string; } export interface IOptionPurchaseInput extends ISecuritiesBookingBase { /** the premium paid, costs included: the depot's `open.amountCents` */ costCents: TCents; cashAccount: string; } /** * Where units closed in a Termingeschäft were carried: options bought * (`option`), or a warrant or a certificate held as a security of its * classification, whose result a person decided is a Termingeschäft's. */ export type TTermingeschaeftHolding = { kind: 'option'; } | { kind: 'security'; classification: TSecuritiesClassification; }; export interface ITermingeschaeftCloseInput extends ISecuritiesBookingBase { held: TTermingeschaeftHolding; /** what the closing brought, net of its costs; 0 at expiry: the depot's `close.amountCents` */ proceedsCents: TCents; /** the book value released: the depot's `close.bookCents` */ bookCents: TCents; cashAccount: string; } export interface IVariationMarginInput extends ISecuritiesBookingBase { /** the day's settlement of a future or a CFD: positive received, negative paid (the depot's `variation_margin.amountCents`) */ amountCents: TCents; /** the contract's variation margin held before it: positive net received, negative net paid (the depot's `variation_margin.heldBeforeCents`) */ heldBeforeCents: TCents; cashAccount: string; } export interface IContractCloseInput extends ISecuritiesBookingBase { /** the variation margin held for the units closed, the result: positive net received, negative net paid (the depot's `close.variationMarginCents`) */ variationMarginCents: TCents; } export interface IWrittenOptionOpenInput extends ISecuritiesBookingBase { /** the premium received, net of costs: the depot's `open.amountCents` of a short option */ premiumCents: TCents; cashAccount: string; } /** * What a written option's closing realises (the depot's `close.resultClass`, * or a person's decision on a buy-back): * - `stillhalter`: the premium earned at expiry or assignment, less what a * closing cost (BFH 18.12.2002 I R 17/02), the writer's income; * - `stillhalter_cash_settled`: settled in cash: the premium earned, and the * settlement paid a Termingeschäft's loss, each gross; * - `termingeschaeft`: a buy-back a person decided is a Termingeschäft: premium * less cost, a gain or a loss of one. */ export type TWrittenOptionResult = 'stillhalter' | 'stillhalter_cash_settled' | 'termingeschaeft'; export interface IWrittenOptionCloseInput extends ISecuritiesBookingBase { result: TWrittenOptionResult; /** the premium the obligation is carried at: the depot's `close.bookCents` */ bookCents: TCents; /** what the closing cost, costs included; 0 at expiry: the depot's `close.amountCents` */ costCents: TCents; cashAccount: string; } export interface IProvisionInput extends ISecuritiesBookingBase { /** positive: the provision formed or raised; negative: released */ amountCents: TCents; } export interface IVariationMarginWriteOffInput extends ISecuritiesBookingBase { /** the variation margin paid beyond what the contract received, written off: positive */ amountCents: TCents; } export interface IShortSaleOpenInput extends ISecuritiesBookingBase { /** what the short sale brought, net of costs: the depot's `open.amountCents` of a short position */ proceedsCents: TCents; cashAccount: string; } export interface IShortSaleCoverInput extends ISecuritiesBookingBase { /** what covering cost, costs included: the depot's `close.amountCents` */ costCents: TCents; /** what the obligation is carried at: the depot's `close.bookCents` */ bookCents: TCents; cashAccount: string; } export interface IObligationValuationInput extends ISecuritiesBookingBase { /** positive: the obligation raised to a higher market value (a loss); negative: lowered back toward what it brought */ amountCents: TCents; } export interface ISecuritiesLendingInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; kind: TSecurityKind; /** the book value of the units: positive lent out, negative returned (the depot's `lending.bookCents`) */ bookCents: TCents; } /** * What a security paid: a dividend (`dividend`), a fund's distribution * (`distribution`), a bond's coupon beyond accrued interest set off * (`coupon`; `bookAccruedInterest` books one with the claim it sets off). */ export type TSecuritiesIncomeKind = 'dividend' | 'distribution' | 'coupon'; export interface ISecuritiesIncomeInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; kind: TSecuritiesIncomeKind; /** * a dividend of a holding of at least 10 % of the capital at the start of the * calendar year (§ 8b Abs. 1 and 4 KStG): on the § 8b accounts; a smaller * holding's (Streubesitz) is taxable, on the ordinary ones */ participation10?: boolean; /** the amount paid, gross of tax withheld: positive received, negative reversed */ amountCents: TCents; cashAccount: string; } /** * The tax withheld from a security's income: * - `capital_gains_tax`: German Kapitalertragsteuer with its * Solidaritätszuschlag (5.5 % of it), creditable against the corporate tax * (§ 31 KStG, § 36 Abs. 2 Nr. 2 EStG); the amount is split into both; * - `foreign_creditable`: foreign withholding tax to credit (§ 26 KStG, § 34c * EStG) or deduct; * - `foreign_on_exempt_income`: foreign tax on income exempt at home, neither * credited nor deducted (§ 10 Nr. 2 KStG on a § 8b Abs. 1 dividend); * - `foreign_refundable`: withholding beyond the treaty rate the state refunds * on application, a claim. */ export type TWithholdingKind = 'capital_gains_tax' | 'foreign_creditable' | 'foreign_on_exempt_income' | 'foreign_refundable'; export interface IWithholdingTaxInput extends ISecuritiesBookingBase { kind: TWithholdingKind; /** positive withheld, negative refunded (a correction of the withholding); `capital_gains_tax`: the tax with its Solidaritätszuschlag */ amountCents: TCents; /** * `capital_gains_tax` only: the Solidaritätszuschlag in the amount, as the broker states it; absent, it is the one * the amount holds by § 4 SolZG (5.5 % of the tax, fractions of a cent dropped) */ soliCents?: TCents; cashAccount: string; } /** * Interest and charges around a depot: * - `credit_interest`: interest on the depot's cash, and `lending_fee`, what * the broker pays for securities lent: interest and similar income (the * policy's `otherIncome.interest`); * - `margin_interest`: interest on the depot's debit balance; * - `borrow_fee`: the fees of securities borrowed; * - `compensation_received`: a payment in place of a dividend on securities * lent, no dividend: other operating income; * - `compensation_paid`: a payment in place of a dividend on securities sold * short, part of the short sale's result. */ export type TDepotInterestKind = 'credit_interest' | 'lending_fee' | 'margin_interest' | 'borrow_fee' | 'compensation_received' | 'compensation_paid'; export interface IDepotInterestInput extends ISecuritiesBookingBase { kind: TDepotInterestKind; /** positive as the kind says (received for income, paid for an expense), negative corrected back */ amountCents: TCents; cashAccount: string; } export interface IAccruedInterestInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; /** accrued interest paid with a purchase (Stückzinsen), a claim: the depot's `accrued_interest.paidCents` */ paidCents: TCents; /** of the interest received with a sale or a coupon, the claim set off: the depot's `accrued_interest.setOffCents` */ setOffCents: TCents; /** the rest of it, interest earned: the depot's `accrued_interest.incomeCents` */ incomeCents: TCents; cashAccount: string; } export interface IInterestAccrualInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; /** a bond's interest accrued at a closing date, which the next coupon sets off: the depot's `interest_accrual.amountCents` */ amountCents: TCents; } export interface IBondInterestAdjustmentInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; /** `amortisation`: a premium paid above par spread to maturity; `accretion`: a zero bond's interest accrued into its book value */ kind: 'amortisation' | 'accretion'; amountCents: TCents; } /** What a closing-date valuation values: a security of its kind, or options bought (`option`). */ export type TValuedHolding = TSecurityKind | 'option'; export interface ISecuritiesWriteDownInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; held: TValuedHolding; amountCents: TCents; /** * a fixed asset's decline: `lasting`, written down (§ 253 Abs. 3 Satz 5 * HGB), or `temporary`, a Finanzanlage written down by choice (Satz 6), * which tax law does not follow (§ 6 Abs. 1 Nr. 2 Satz 2 EStG); required for * a fixed asset, refused for a current one */ decline?: 'lasting' | 'temporary'; } export interface ISecuritiesWriteUpInput extends ISecuritiesBookingBase { classification: TSecuritiesClassification; held: TValuedHolding; /** at most what the units cost (§ 253 Abs. 5 HGB): the caller's cap */ amountCents: TCents; } export interface ISecuritiesReclassificationInput extends ISecuritiesBookingBase { kind: TSecurityKind; from: TSecuritiesClassification; to: TSecuritiesClassification; /** the book value moved (Umwidmung at book value): the depot's `reclassification.bookCents` */ bookCents: TCents; } export interface ISecuritiesAllocationInput extends ISecuritiesBookingBase { /** the classification of the securities given, which the securities received keep */ classification: TSecuritiesClassification; /** what the securities given are */ kind: TSecurityKind; /** * the securities received, each with the part of the book value it takes * over: the depot's `open` movements of an allocation (`open.transferredCents`) */ received: Array<{ kind: TSecurityKind; bookCents: TCents; }>; } export interface ISecuritiesExchangeInput extends ISecuritiesBookingBase { /** the classification of the securities given */ classification: TSecuritiesClassification; /** what the securities given are */ kind: TSecurityKind; /** the securities given's tax treatment; absent: derived from their kind as in a sale; never changes either holding account */ taxTreatment?: TSecuritiesTaxTreatment; /** the book value of the securities given: the depot's `close.bookCents` */ bookCents: TCents; /** * the securities received for them, at their cost: the gemeiner Wert of the * securities given (§ 6 Abs. 6 Satz 1 EStG), less money received with them, * plus money paid for them; the depot's `open` of a realizing decision's * `to` (`open.amountCents`) */ received: { classification: TSecuritiesClassification; kind: TSecurityKind; valueCents: TCents; }; /** money received with them (positive) or paid for them (negative): the corporate action's cash; 0 where absent */ cashCents?: TCents; /** the depot's cash account the money moves on; named where `cashCents` is not 0 */ cashAccount?: string; } export interface ICurrencyConversionInput extends ISecuritiesBookingBase { /** the cash account the money leaves */ fromAccount: string; /** the cash account it enters */ toAccount: string; /** the conversion's value in euros, both legs: the euro leg, or the broker's euros of a conversion between two other currencies */ amountCents: TCents; } /** * A purchase of securities (§ 255 Abs. 1 HGB): the units at their cost, * commissions and taxes included, on the holding account of their * classification and kind, against the cash paid; a call exercised into the * purchase hands its book value over from the options bought (IDW RS BFA 6). */ export declare function bookSecuritiesPurchase(input: ISecuritiesPurchaseInput, policy: IAccountPolicy): IJournalDraft; /** * A sale or a redemption of securities held (the depot's closings of class * `security`): the book value leaves the holding, the result is a gain or a * loss. * - A current asset is booked net: the result on the account of a current * asset's disposal of a gain or of a loss (§ 275 Abs. 2 Nr. 4 or 8 HGB), as * the result net of costs is one. The § 8b treatment (a share's default) * uses its result accounts, with the * costs of the sale apart on the costs' account of a gain or of a loss, as * DATEV keeps them (§ 8b Abs. 2 Satz 2 KStG: the gain is net of them), so * the result account takes what the sale brought before costs less the book * value — credited to the account of a loss where the costs turn a gain into * a loss; the ordinary treatment books net of its costs. * - A fixed asset is booked gross, as DATEV's disposal accounts of a * Finanzanlage take it: the proceeds on the proceeds account and the book * value on the account of the residual book value, each of a gain or of a * loss; the § 8b treatment (a share's default) keeps its costs apart. * A put exercised into the sale lowers the proceeds by its book value (IDW RS * BFA 6), which leaves the options bought. */ export declare function bookSecuritiesSale(input: ISecuritiesSaleInput, policy: IAccountPolicy): IJournalDraft; /** Options bought: the premium paid, costs included, an other asset (IDW RS BFA 6), against the cash. */ export declare function bookOptionPurchase(input: IOptionPurchaseInput, policy: IAccountPolicy): IJournalDraft; /** * A Termingeschäft closed: options bought sold, expired or settled in cash, * or a warrant or a certificate whose result a person decided is a * Termingeschäft's. The book value leaves; the result goes to the books' * accounts of Termingeschäfte, whose losses § 15 Abs. 4 Satz 3 EStG offsets * only against their gains, for a corporation too (§ 8 Abs. 1 KStG; BFH * I R 60/16). */ export declare function bookTermingeschaeftClose(input: ITermingeschaeftCloseInput, policy: IAccountPolicy): IJournalDraft; /** * A future's or a CFD's daily settlement (variation margin), held until the * contract closes (§ 252 Abs. 1 Nr. 4 HGB: an open gain is not realised). A * contract's margin is one balance, net: paid beyond what it received an other * asset, received beyond what it paid an other liability. A settlement first * lowers the side the contract stands on, the rest builds the other. */ export declare function bookVariationMargin(input: IVariationMarginInput, policy: IAccountPolicy): IJournalDraft; /** * A future or a CFD closed: the variation margin held for the units closed is * the result of a Termingeschäft, a gain where the contract received more than * it paid, a loss where it paid more. */ export declare function bookContractClose(input: IContractCloseInput, policy: IAccountPolicy): IJournalDraft; /** * A variation margin paid beyond what the contract received, written off at a * closing date: an open loss (§ 252 Abs. 1 Nr. 4 HGB, imparity), on the * write-downs of current assets other than securities in their usual amount. */ export declare function bookVariationMarginWriteOff(input: IVariationMarginWriteOffInput, policy: IAccountPolicy): IJournalDraft; /** * An option written: the premium received is the writer's obligation until * the option expires, is exercised or bought back (BFH 18.12.2002 I R 17/02), * an other liability. */ export declare function bookWrittenOptionOpen(input: IWrittenOptionOpenInput, policy: IAccountPolicy): IJournalDraft; /** A written option closed: by expiry, assignment, cash settlement or a buy-back, as its result says (`TWrittenOptionResult`). */ export declare function bookWrittenOptionClose(input: IWrittenOptionCloseInput, policy: IAccountPolicy): IJournalDraft; /** * The provision for an expected loss from a written option worth more than * its premium (§ 249 Abs. 1 Satz 1 HGB), formed or raised on the other * operating expenses, released on the income of provisions released. DATEV * marks the provision's account "HB": tax law allows none (§ 5 Abs. 4a EStG). */ export declare function bookWrittenOptionProvision(input: IProvisionInput, policy: IAccountPolicy): IJournalDraft; /** * A short sale: securities sold that the depot borrowed. What it brought is * the obligation to deliver them, an other liability, until covered. Refused * until the books keep the accounts of a short sale's result. */ export declare function bookShortSaleOpen(input: IShortSaleOpenInput, policy: IAccountPolicy): IJournalDraft; /** A short sale covered: the obligation leaves; what it was carried at less what covering cost is the short sale's gain or loss. */ export declare function bookShortSaleCover(input: IShortSaleCoverInput, policy: IAccountPolicy): IJournalDraft; /** * The obligation of a short sale valued at a closing date: raised to a * higher market value, an open loss (§ 252 Abs. 1 Nr. 4, § 253 Abs. 1 Satz 2 * HGB), or lowered back toward what it brought. */ export declare function bookShortSaleValuation(input: IObligationValuationInput, policy: IAccountPolicy): IJournalDraft; /** * Securities lent (a Sachdarlehen, the broker's securities lending): the * units leave the holding at their book value for the claim to their return * (BFH I R 40/17), which their return sets off again. */ export declare function bookSecuritiesLending(input: ISecuritiesLendingInput, policy: IAccountPolicy): IJournalDraft; /** * A security's income, gross of tax withheld (which `bookWithholdingTax` * books): a dividend, a fund's distribution, a bond's coupon, on the income * account of a fixed or a current asset; a dividend of a holding of at least * 10 % (§ 8b Abs. 1 and 4 KStG) on its § 8b account. */ export declare function bookSecuritiesIncome(input: ISecuritiesIncomeInput, policy: IAccountPolicy): IJournalDraft; /** * Tax withheld from a security's income (`TWithholdingKind`), against the * cash: German Kapitalertragsteuer split into the tax and its * Solidaritätszuschlag (5.5 % of the tax), each on its own account. */ export declare function bookWithholdingTax(input: IWithholdingTaxInput, policy: IAccountPolicy): IJournalDraft; /** Interest and charges around a depot (`TDepotInterestKind`), against its cash. */ export declare function bookDepotInterest(input: IDepotInterestInput, policy: IAccountPolicy): IJournalDraft; /** * A bond's accrued interest (Stückzinsen): paid with a purchase, a claim * beside the bond, not its cost; received with a sale or a coupon, first the * claim set off, the rest interest earned on the income account of the bond's * classification. */ export declare function bookAccruedInterest(input: IAccruedInterestInput, policy: IAccountPolicy): IJournalDraft; /** A bond's interest accrued at a closing date (§ 252 Abs. 1 Nr. 5 HGB), a claim the next coupon sets off. */ export declare function bookInterestAccrual(input: IInterestAccrualInput, policy: IAccountPolicy): IJournalDraft; /** * A bond's book value moved toward what it repays, against its interest * income: a premium paid above par spread to maturity lowers it * (`amortisation`), a zero bond's interest accrued raises it (`accretion`). */ export declare function bookBondInterestAdjustment(input: IBondInterestAdjustmentInput, policy: IAccountPolicy): IJournalDraft; /** * A write-down at a closing date (§ 253 HGB): a current asset to its lower * market price (Abs. 4), a fixed asset for a lasting decline (Abs. 3 Satz 5) * or, a Finanzanlage, for a temporary one by choice (Satz 6, on DATEV's * account it marks "HB"), options bought on the write-downs of current assets * other than securities. A share's on the § 8b accounts (§ 8b Abs. 3 KStG), * except the temporary one, which tax law does not follow anyway. */ export declare function bookSecuritiesWriteDown(input: ISecuritiesWriteDownInput, policy: IAccountPolicy): IJournalDraft; /** * A write-up at a closing date: a lower value whose reason has gone is not * kept (§ 253 Abs. 5 HGB), up to what the units cost. A share's on the one § * 8b account of write-ups, options bought on the write-ups of current assets. */ export declare function bookSecuritiesWriteUp(input: ISecuritiesWriteUpInput, policy: IAccountPolicy): IJournalDraft; /** Securities moved between fixed and current assets (Umwidmung) at their book value. */ export declare function bookSecuritiesReclassification(input: ISecuritiesReclassificationInput, policy: IAccountPolicy): IJournalDraft; /** * Securities received in a corporate action that carries the book value of the * securities given over to them (a spin-off or a merger at book value, as a * person decided: the depot's allocation): the part each takes over moves from * the holding of the securities given to the holding of its kind, in the same * classification; nothing is realised. Where the securities received are held * on the account of the securities given (a current asset's always), nothing * moves: the draft has no lines, and the caller posts nothing. */ export declare function bookSecuritiesAllocation(input: ISecuritiesAllocationInput, policy: IAccountPolicy): IJournalDraft; /** * Securities given for others in a corporate action that realises them (an * exchange at the gemeiner Wert, § 6 Abs. 6 Satz 1 EStG, as a person decided: * the depot's realizing decision with the securities received): the securities * given leave as in a sale (`bookSecuritiesSale`: a current asset net, a fixed * asset gross, by default a share's on the § 8b accounts), and what they * brought is the securities received, at their cost, with money received alongside or less * money paid for them; no costs. The securities received come in on the * holding of their classification and kind; money paid for them is part of * their cost. An explicit `taxTreatment` selects the tax accounts of the * securities given, never the holding accounts. Securities received on the * holding of the securities given at their book value, without money, move * nothing: the draft has no lines. */ export declare function bookSecuritiesExchange(input: ISecuritiesExchangeInput, policy: IAccountPolicy): IJournalDraft; /** * A currency conversion between two cash accounts of a depot, at the euros * of the conversion: both legs are worth them on the day, so nothing is * gained or lost; its commission is a fee of its own (`bookPaymentFee`), and * what the foreign balance is worth later the currency revaluation's. */ export declare function bookCurrencyConversion(input: ICurrencyConversionInput, policy: IAccountPolicy): IJournalDraft;