UNPKG

@woocommerce/data

Version:
18 lines 623 B
import { APIFetchOptions } from '@wordpress/api-fetch'; import { AnyAction } from 'redux'; export declare const fetchWithHeaders: (options: APIFetchOptions) => AnyAction & { options: APIFetchOptions; }; export type FetchWithHeadersResponse<Data> = { headers: Response['headers']; status: Response['status']; data: Data; }; declare const controls: { FETCH_WITH_HEADERS(action: AnyAction): Promise<any>; API_FETCH: (action: AnyAction) => Promise<any>; DISPATCH: (action: AnyAction) => void; SELECT: (action: AnyAction) => any; }; export default controls; //# sourceMappingURL=controls.d.ts.map