@eristack/tax
Version:
Tax code registry and effective-dated rates — math via @eristack/money Tax ops
16 lines • 597 B
TypeScript
import { Money } from "@eristack/money";
import type { ResolvedTaxRate, TaxCode, TaxRateScheduleEntry } from "./types.js";
export declare function createTaxRegistry(initial?: {
codes?: TaxCode[];
rates?: TaxRateScheduleEntry[];
}): {
registerTaxCode: (entry: TaxCode) => void;
registerRateSchedule: (entry: TaxRateScheduleEntry) => void;
resolveTaxRate: (args: {
code: string;
asOf: string;
}) => ResolvedTaxRate;
applyTaxToAmount: (base: Money, ratePercent: string) => Money;
listTaxCodes: () => TaxCode[];
};
//# sourceMappingURL=registry.d.ts.map