import { Methods } from "./methods.js"; import { AnnualEarnings } from "./types/gumroad.js"; //#region src/earnings.d.ts declare class EarningsMethods extends Methods { /** * Retrieves an annual earnings breakdown for the authenticated user, matching the totals reported in the Tax Center. * * Only available to US-based sellers with the tax center enabled. Fully refunded sales are excluded from every aggregate. * * @param year A 4-digit tax year. * Returns 404 if the year is outside the seller's available range (account-creation year through the previous calendar year). * * @returns On success, an {@link AnnualEarnings} object * * @see https://app.gumroad.com/api#get-/earnings * * **Only available with the `view_tax_data` scope.** */ get(year: number, { signal }?: { signal?: AbortSignal; }): Promise; } //#endregion export { EarningsMethods }; //# sourceMappingURL=earnings.d.ts.map