UNPKG

@woocommerce/data

Version:
30 lines 1.14 kB
import { ReportItemsEndpoint, ReportStatEndpoint, ReportQueryParams, ReportStatQueryParams, ReportItemObject, ReportStatObject } from './types'; export declare function getReportItems(endpoint: ReportItemsEndpoint, query: ReportQueryParams): Generator<(import("redux").AnyAction & { options: import("@wordpress/api-fetch/build-types/types").APIFetchOptions; }) | { type: "SET_ITEM_ERROR"; resourceName: string; error: unknown; } | { type: "SET_REPORT_ITEMS"; resourceName: string; items: ReportItemObject; }, void, { headers: Map<string, string>; data: ReportItemObject['data']; }>; export declare function getReportStats(endpoint: ReportStatEndpoint, query: ReportStatQueryParams): Generator<(import("redux").AnyAction & { options: import("@wordpress/api-fetch/build-types/types").APIFetchOptions; }) | { type: "SET_REPORT_STATS"; resourceName: string; stats: ReportStatObject; } | { type: "SET_STAT_ERROR"; resourceName: string; error: unknown; }, void, { headers: Map<string, string>; data: ReportStatObject['data']; }>; //# sourceMappingURL=resolvers.d.ts.map