@woocommerce/data
Version:
WooCommerce Admin data store and utilities
34 lines • 2.26 kB
TypeScript
/// <reference path="../../typings/index.d.ts" />
/// <reference types="rememo" />
/**
* Internal dependencies
*/
import { TaskType, TaskListType, OnboardingState, ExtensionList, ProfileItems, GetJetpackAuthUrlResponse } from './types';
import { WPDataSelectors } from '../types';
import { Plugin } from '../plugins/types';
export declare const getFreeExtensions: (state: OnboardingState) => ExtensionList[];
export declare const getProfileItems: (state: OnboardingState) => ProfileItems | Record<string, never>;
export declare const getTaskLists: ((state: OnboardingState) => TaskListType[]) & import("rememo").EnhancedSelector;
export declare const getTaskListsByIds: ((state: OnboardingState, ids: string[]) => TaskListType[]) & import("rememo").EnhancedSelector;
export declare const getTaskList: (state: OnboardingState, selector: string) => TaskListType | undefined;
export declare const getTask: (state: OnboardingState, selector: string) => TaskType | undefined;
export declare const getPaymentGatewaySuggestions: (state: OnboardingState) => Plugin[];
export declare const getOnboardingError: (state: OnboardingState, selector: string) => unknown | false;
export declare const isOnboardingRequesting: (state: OnboardingState, selector: string) => boolean;
export declare const getEmailPrefill: (state: OnboardingState) => string;
export declare const getProductTypes: (state: OnboardingState) => import("./types").OnboardingProductTypes;
export declare const getJetpackAuthUrl: (state: OnboardingState, query: {
redirectUrl: string;
from?: string;
}) => GetJetpackAuthUrlResponse;
export type OnboardingSelectors = {
getProfileItems: () => ReturnType<typeof getProfileItems>;
getPaymentGatewaySuggestions: () => ReturnType<typeof getPaymentGatewaySuggestions>;
getOnboardingError: () => ReturnType<typeof getOnboardingError>;
isOnboardingRequesting: () => ReturnType<typeof isOnboardingRequesting>;
getTaskListsByIds: (ids: string[]) => ReturnType<typeof getTaskListsByIds>;
getTaskLists: () => ReturnType<typeof getTaskLists>;
getTaskList: (id: string) => ReturnType<typeof getTaskList>;
getFreeExtensions: () => ReturnType<typeof getFreeExtensions>;
} & WPDataSelectors;
//# sourceMappingURL=selectors.d.ts.map