/** * External dependencies */ import type { ServiceResource } from '@ai-services/ai/types'; import type { StoreConfig, Action, ThunkArgs } from '../utils/store-types'; export declare enum ActionType { Unknown = "REDUX_UNKNOWN", ReceiveServices = "RECEIVE_SERVICES", ReceiveService = "RECEIVE_SERVICE" } type UnknownAction = Action; type ReceiveServicesAction = Action; type ReceiveServiceAction = Action; export type CombinedAction = UnknownAction | ReceiveServicesAction | ReceiveServiceAction; export type State = { services: Record | undefined; }; export type ActionCreators = typeof actions; export type Selectors = typeof selectors; type DispatcherArgs = ThunkArgs; declare const actions: { /** * Receives services from the server. * * @since 0.1.0 * * @param services - Services received from the server. * @returns Action creator. */ receiveServices(services: ServiceResource[]): ({ dispatch }: DispatcherArgs) => void; /** * Receives a service from the server. * * @since 0.1.0 * * @param service - Service received from the server. * @returns Action creator. */ receiveService(service: ServiceResource): ({ dispatch }: DispatcherArgs) => void; /** * Refreshes a service from the server. * * @since 0.1.0 * * @param slug - Service slug. * @returns Action creator. */ refreshService(slug: string): ({ dispatch, select }: DispatcherArgs) => Promise; }; declare const selectors: { getServices: (state: State) => Record | undefined; getService: { (_state: State, slug: string): ServiceResource | null | undefined; isRegistrySelector?: boolean; registry?: any; }; }; declare const storeConfig: StoreConfig; export default storeConfig; //# sourceMappingURL=services.d.ts.map