/** * External dependencies */ import { SelectFromMap } from '@automattic/data-stores'; /** * Internal dependencies */ import { STORE_NAME } from './constants'; import * as selectors from './selectors'; import * as actions from './actions'; import { State } from './reducer'; import { WPDataSelectors } from '../types'; import { PromiseifySelectors } from '../types/promiseify-selectors'; export * from './types'; export type { State }; export declare const store: import("@wordpress/data/build-types/types").StoreDescriptor>; export declare const REPORTS_STORE_NAME: "wc/admin/reports"; export type ReportsSelect = WPDataSelectors & Omit, 'getReportItems' | 'getReportStats'> & { getReportItems: (...args: RemoveStateParam>) => ReturnType>; getReportStats: (...args: RemoveStateParam>) => ReturnType>; }; declare module '@wordpress/data' { function select(key: typeof STORE_NAME | typeof store): ReportsSelect; function resolveSelect(key: typeof STORE_NAME | typeof store): PromiseifySelectors; } /** * Remove the state parameter from a given function type. */ type RemoveStateParam = F extends (state: infer S, ...args: infer T) => infer R ? T : never; //# sourceMappingURL=index.d.ts.map