import type { ActionFieldDef } from './types'; import { type ActionMetadata, type ActionModalProps } from '@asteby/metacore-sdk'; export type { ActionMetadata, ActionModalProps }; export interface PrefillSpec { $prefillFromRecord: string; map?: Record; remaining?: { target: string; of: string; minus?: string; }; /** * Item-field keys to lock (render read-only) in the prefilled rows — e.g. the * product of a receive-goods line is dictated by the source document, so it * is shown as a resolved name but cannot be changed. Editable in the create * flow (which carries no prefill spec); only the prefilled action locks them. */ lock?: string[]; } export declare function isPrefillSpec(v: unknown): v is PrefillSpec; export declare function applyPrefillLock(field: ActionFieldDef): ActionFieldDef; export declare function buildPrefillRows(spec: PrefillSpec, record: any): Array>; export declare function unwrapRecordScalar(value: unknown): unknown; export declare function readRecordPath(record: any, path: string): unknown; /** Scalar seed for one action field from the row being acted on. */ export declare function scalarDefaultFromRecord(field: ActionFieldDef, record: any): unknown; export declare function ActionModalDispatcher({ open, onOpenChange, action, model, record, endpoint, onSuccess, }: ActionModalProps): import("react").JSX.Element | null; //# sourceMappingURL=action-modal-dispatcher.d.ts.map