import type { PayloadActionCreator } from './create-action.js'; /** * Internal helper utilities for constructing and inspecting Redux-style * lifecycle action types (`::request`, `::success`, `::failure`). */ /** * Separates an action's base type from its lifecycle suffix. */ export declare const actionSuffixDivider = "::"; /** * Creates a matcher for action types ending with the requested suffix. * * @param suffix - The action suffix to match. * @returns A regular expression that matches the suffix at the end of an action type. */ export declare const matchActionSuffix: (suffix: string) => RegExp; type BaseType = T extends `${infer A}${typeof actionSuffixDivider}${infer _R}` ? A : never; /** * Extracts the base type from an action type string. * * @template T - The action type string. * @param type - The action type string to extract the base type from. * @returns The base type of the action type string, or `never` if the input string does not match the expected format. */ export declare function getBaseType(type: T): BaseType; /** * Returns the action type of an action creator generated by `createAction`. * * @template T - The action type string. * @param actionCreator - The action creator whose action type to get. * @returns The action type used by the action creator. */ export declare function getType(actionCreator: PayloadActionCreator): T; export {};