import type { AsyncThunkAction, PayloadAction } from '@reduxjs/toolkit'; import type { AsyncThunkInsightOptions } from '../../api/service/insight/insight-api-client.js'; import type { InsightEngine } from '../../app/insight-engine/insight-engine.js'; import { type LoadCollectionFulfilledReturn, type RegisterFoldingActionCreatorPayload, type StateNeededByLoadCollection } from './insight-folding-actions.js'; export type { RegisterFoldingActionCreatorPayload }; /** * The folding action creators. */ export interface InsightFoldingActionCreators { /** * Registers a folding configuration. * * @param payload - The action creator payload. * @returns A dispatchable action. */ registerFolding(payload: RegisterFoldingActionCreatorPayload): PayloadAction; /** * Loads the results of a collection. * * @param collectionId - The collection id to load results for. * @returns A dispatchable action. */ loadCollection(collectionId: string): AsyncThunkAction>; } /** * Loads the `folding` reducer and returns possible action creators. * * @param engine - The headless engine (Insight). * @returns An object holding the action creators. */ export declare function loadFoldingActions(engine: InsightEngine): InsightFoldingActionCreators;