import { $Fetch } from 'ofetch'; import { CONTENT_ENDPOINT } from '../../common/constants/content.constant'; import { ActionResponse } from '../content/content.type'; import { PEOPLE_ACTION_NAME, PeopleActionName } from '../../common/constants/people.constant'; import { PeopleActionOpts } from './shared.types'; export interface InvokeDeps { api: $Fetch; actionEndpoint: (uuid: string, actionName: string) => string; } export interface InvokeBody extends PeopleActionOpts { params: Record; } /** Row-scoped: `POST /content/{uuid}/actions/{actionName}`. */ export declare function _invokeRowAction(deps: InvokeDeps, uuid: string, actionName: PeopleActionName, params?: object, opts?: PeopleActionOpts): Promise; /** * Row-scoped with a **dynamic** action name — for GENERATED per-flow CTs * (FEAT-010) whose action keys are authored in the request-type definition * (e.g. `manager_approve`), not enumerated in `PEOPLE_ACTION_NAME`. */ export declare function _invokeRowActionDynamic(deps: InvokeDeps, uuid: string, actionName: string, params?: object, opts?: PeopleActionOpts): Promise; /** Factory action: `POST /content/types/{type}/actions/{actionName}`. */ export declare function _invokeFactoryAction(deps: InvokeDeps, typeName: string, actionName: PeopleActionName, params?: object, opts?: PeopleActionOpts): Promise; /** Re-export the engine's generic endpoint for callers that want to spread * the SDK-internal helper rather than `CONTENT_ENDPOINT.action(uuid, …)`. */ export { CONTENT_ENDPOINT, PEOPLE_ACTION_NAME }; //# sourceMappingURL=_invoke.d.ts.map