import type { Action, ActionName } from './types/Action'; import type { ActionCreator } from './types/ActionCreator'; /** * Create an action creator * * @param type A name for debugging purposes * @template `Payload` - The payload type for the action * @returns An action creator function that accepts a payload as input, and * returns a complete action object with that payload and a type unique * to this action creator */ export declare const actionCreator: (type: ActionName) => ActionCreator; /** * Assert that a value is a valid rx beach action. * We assert that payload is a key in the object because this is what our * actionCreator performs */ export declare const isValidRxBeachAction: (action: unknown) => action is Action; /** * Assert that an action creator is of a specific type, and extract its payload * type */ export declare const isActionOfType: (creatorFn: ActionCreator, action: unknown) => action is Action;