import { Methods } from "./methods.js"; import { TaxForm, TaxFormType } from "./types/gumroad.js"; //#region src/tax-forms.d.ts /** A class having API methods related to Tax Forms */ declare class TaxFormsMethods extends Methods { /** * Retrieves tax forms (1099-K, 1099-MISC) generated for the authenticated user. * Only available to US-based sellers with the tax center enabled. * * @param options (Optional) Options * * @returns On success, an Array of {@link TaxForm} * * @see https://app.gumroad.com/api#get-/tax_forms * * **Only available with the `view_tax_data` scope.** */ list(options?: { /** * A 4-digit tax year. * * When omitted, returns forms for every available year. * * Returns 404 if the year is outside the seller's available range (account-creation year through the previous calendar year). */ year?: number; }, { signal }?: { signal?: AbortSignal; }): Promise; /** * Downloads the PDF for a specific tax form. Response is the raw PDF on success * * @param year A 4-digit tax year. * @param tax_form_type The form type. * * @returns On success, An Object * * @see https://app.gumroad.com/api#get-/tax_forms/:year/:tax_form_type/download * * **Only available with the `view_tax_data` scope.** */ download(year: number, tax_form_type: TaxFormType, { signal }?: { signal?: AbortSignal; }): Promise<{ bytes: Uint8Array; type: string | null; }>; } //#endregion export { TaxFormsMethods }; //# sourceMappingURL=tax-forms.d.ts.map