UNPKG

@woocommerce/data

Version:
26 lines 969 B
import { DispatchFromMap } from '@automattic/data-stores'; /** * Internal dependencies */ import * as actions from './actions'; import { Locales, Country } from './types'; export declare function getLocale(): Generator<any, void, unknown>; export declare function getLocales(): Generator<unknown, { type: import("./action-types").TYPES.GET_LOCALES_SUCCESS; locales: Locales; } | { type: import("./action-types").TYPES.GET_LOCALES_ERROR; error: unknown; }, Locales>; export declare function getCountry(): Generator<any, void, unknown>; export declare function getCountries(): Generator<unknown, { type: import("./action-types").TYPES.GET_COUNTRIES_SUCCESS; countries: Country[]; } | { type: import("./action-types").TYPES.GET_COUNTRIES_ERROR; error: unknown; }, Country[]>; export declare const geolocate: () => ({ dispatch }: { dispatch: DispatchFromMap<typeof actions>; }) => Promise<void>; //# sourceMappingURL=resolvers.d.ts.map