import { type ThunkAction } from '@reduxjs/toolkit'; import { type SerializedControl } from '../../builder'; import { type PropControllerMessage } from '../../prop-controllers/instances'; import { type Document } from '../modules/read-only-documents'; import { type ComponentMeta } from '../modules/components-meta'; import { type BoxDisplayModel } from '../modules/read-write/box-models'; import { type ElementSize } from '../middleware/read-write/builder-api/element-size'; import { type DocumentPayload, type SharedAction } from '../shared-api'; import { type HostNavigationEvent } from './api'; import { type SetBreakpointsAction, type SetLocaleAction } from '../actions/internal/read-only-actions'; export * from '../shared-api'; export { setBreakpoints } from '../actions/internal/read-only-actions'; export { setLocale } from '../actions/internal/read-only-actions'; import { BuilderActionTypes } from './action-types'; type ActionWithTransferables = A & { transferables?: Transferable[]; }; type MakeswiftConnectionCheckAction = { type: typeof BuilderActionTypes.MAKESWIFT_CONNECTION_CHECK; }; export type MountComponentAction = { type: typeof BuilderActionTypes.MOUNT_COMPONENT; payload: { documentKey: string; elementKey: string; }; }; export type UnmountComponentAction = { type: typeof BuilderActionTypes.UNMOUNT_COMPONENT; payload: { documentKey: string; elementKey: string; }; }; type ChangeDocumentElementSizeAction = { type: typeof BuilderActionTypes.CHANGE_DOCUMENT_ELEMENT_SIZE; payload: { size: ElementSize; }; }; type ChangeElementBoxModelsAction = { type: typeof BuilderActionTypes.CHANGE_ELEMENT_BOX_MODELS; payload: { changedElementBoxModels: Map>; }; }; type MessageBuilderPropControllerAction = { type: typeof BuilderActionTypes.MESSAGE_BUILDER_PROP_CONTROLLER; payload: { documentKey: string; elementKey: string; propName: string; message: T; }; }; type HandleWheelAction = { type: typeof BuilderActionTypes.HANDLE_WHEEL; payload: { deltaX: number; deltaY: number; }; }; type HandlePointerMoveAction = { type: typeof BuilderActionTypes.HANDLE_POINTER_MOVE; payload: { clientX: number; clientY: number; }; }; type ElementFromPointChangeAction = { type: typeof BuilderActionTypes.ELEMENT_FROM_POINT_CHANGE; payload: { keys: { documentKey: string; elementKey: string; } | null; }; }; type RegisterBuilderDocumentAction = { type: typeof BuilderActionTypes.REGISTER_BUILDER_DOCUMENT; payload: { documentKey: string; document: DocumentPayload; }; }; type UnregisterBuilderDocumentAction = { type: typeof BuilderActionTypes.UNREGISTER_BUILDER_DOCUMENT; payload: { documentKey: string; }; }; type RegisterBuilderComponentAction = { type: typeof BuilderActionTypes.REGISTER_BUILDER_COMPONENT; payload: { type: string; meta: ComponentMeta; serializedControls: Record; }; }; type UnregisterBuilderComponentAction = { type: typeof BuilderActionTypes.UNREGISTER_BUILDER_COMPONENT; payload: { type: string; }; }; type HandleHostNavigateAction = { type: typeof BuilderActionTypes.HANDLE_HOST_NAVIGATE; payload: HostNavigationEvent; }; export type BuilderAction = SharedAction | SetBreakpointsAction | SetLocaleAction | MakeswiftConnectionCheckAction | MountComponentAction | UnmountComponentAction | ChangeDocumentElementSizeAction | ChangeElementBoxModelsAction | MessageBuilderPropControllerAction | HandleWheelAction | HandlePointerMoveAction | ElementFromPointChangeAction | RegisterBuilderDocumentAction | UnregisterBuilderDocumentAction | RegisterBuilderComponentAction | UnregisterBuilderComponentAction | HandleHostNavigateAction; export declare function makeswiftConnectionCheck(): MakeswiftConnectionCheckAction; export declare function mountComponent(documentKey: string, elementKey: string): MountComponentAction; export declare function unmountComponent(documentKey: string, elementKey: string): UnmountComponentAction; export declare function mountComponentEffect(documentKey: string, elementKey: string): ThunkAction<() => void, unknown, unknown, BuilderAction>; export declare function changeDocumentElementSize(size: ElementSize): ChangeDocumentElementSizeAction; export declare function changeElementBoxModels(changedElementBoxModels: Map>): ChangeElementBoxModelsAction; export declare function messageBuilderPropController(documentKey: string, elementKey: string, propName: string, message: T): MessageBuilderPropControllerAction; export declare function handleWheel(payload: { deltaX: number; deltaY: number; }): HandleWheelAction; export declare function handlePointerMove(payload: { clientX: number; clientY: number; }): HandlePointerMoveAction; export declare function elementFromPointChange(keys: { documentKey: string; elementKey: string; } | null): ElementFromPointChangeAction; export declare function registerBuilderDocument(document: Document): RegisterBuilderDocumentAction; export declare function unregisterBuilderDocument(documentKey: string): UnregisterBuilderDocumentAction; export declare function registerBuilderDocumentsEffect(documents: Document[]): ThunkAction<() => void, unknown, unknown, BuilderAction>; export declare function registerBuilderComponent(payload: RegisterBuilderComponentAction['payload'], transferables?: Transferable[]): ActionWithTransferables; export declare function unregisterBuilderComponent(payload: UnregisterBuilderComponentAction['payload']): UnregisterBuilderComponentAction; export declare function hasTransferables(action: A): action is ActionWithTransferables; //# sourceMappingURL=actions.d.ts.map