import { CapitalGains } from './capital-gains'; export declare type Year = number; /** * Aggregation of the capital gains by year. * Maps from year to the capital gains realized in that year. */ export declare type YearlyCapitalGains = Record; /** * Aggregates the capital gains generated by a sequence of sales by year * * @param saleCapitalGains Array of capital gains generated by sell operations * * @returns A map of year to capital gains generated in the given year */ export declare function aggregateByYear(saleCapitalGains: CapitalGains[]): YearlyCapitalGains; //# sourceMappingURL=aggregations.d.ts.map