import type { PayloadAction } from '@reduxjs/toolkit'; import type { CoreEngine } from '../../app/engine.js'; /** * The case context action creators. * * @group Actions * @category CaseContext */ export interface CaseContextActionCreators { /** * Sets the case context. * * @param payload - The action creator payload. * @returns A dispatchable action. */ setCaseContext(payload: Record): PayloadAction>; /** * Sets the case id. * * @param payload - The action creator payload. * @returns A dispatchable action. */ setCaseId(payload: string): PayloadAction; /** * Sets the case number. * * @param payload - The action creator payload. * @returns A dispatchable action. */ setCaseNumber(payload: string): PayloadAction; } /** * Loads the `case context` reducer and returns possible action creators. * * @param engine - The headless engine. * @returns An object holding the action creators. * * @group Actions * @category CaseContext */ export declare function loadCaseContextActions(engine: CoreEngine): CaseContextActionCreators;