import { TaxResolver } from "./resolver.mjs"; //#region src/flat.d.ts interface FlatTaxClass { /** Percentage, e.g. 15 for 15%. Up to four decimal places. */ rate: number; /** Shown on receipts and reports: 'VAT', 'GST', 'Sales tax'. */ label: string; /** For a 0% class: why no tax applies ('Exempt supply', 'Not registered'). Required when rate is 0. */ reason?: string; } interface FlatTaxConfig { /** ISO 3166-1 alpha-2 of the shop. */ countryCode: string; /** Do shelf prices already include the tax? Decides whether tax is backed out or added. */ pricesIncludeTax: boolean; /** Tax class → its rate. Products name a class; `STANDARD` is the conventional default. */ classes: Readonly>; } declare function createFlatTaxResolver(config: FlatTaxConfig): TaxResolver; /** * The resolver for a seller NOT registered for the tax: every class is not taxable, with the stated * reason recorded on each line, so its sales are rated zero by a decision a reader can see. */ declare function createNotRegisteredTaxResolver(countryCode: string, reason: string): TaxResolver; //#endregion export { FlatTaxClass, FlatTaxConfig, createFlatTaxResolver, createNotRegisteredTaxResolver };