import { GetEntitySpecificReport, QBOReportEntityType } from "./lib/types"; import { Config } from "./lib/config"; import { ReportQuery } from "./reports"; import { QBOError } from "./lib/errors/error-classes"; interface CreateReportOpts { entity: T; opts?: ReportQuery; } export declare const createReportOpts: ({ entity, opts: _opts }: CreateReportOpts) => Result | void>; interface ReportInit { config: Config; initFetchFn: typeof fetch; } export interface ReportArgs { entity: T; opts?: ReportQuery; /** @desc A custom fetch function to use for this report request. This will override any fetchFn passed to the client. */ fetchFn?: typeof fetch; } export type ReportResponse = GetEntitySpecificReport; export declare const report: ({ config, initFetchFn }: ReportInit) => ({ entity, opts, fetchFn: _fetchFn }: ReportArgs) => Promise, QBOError>>; export {};