/** * External dependencies */ import type { SyntheticEvent } from 'react'; /** * Internal dependencies */ import type { DragProps } from '../types'; export declare const CHANGE = "CHANGE"; export declare const COMMIT = "COMMIT"; export declare const DRAG_END = "DRAG_END"; export declare const DRAG_START = "DRAG_START"; export declare const DRAG = "DRAG"; export declare const INVALIDATE = "INVALIDATE"; export declare const PRESS_DOWN = "PRESS_DOWN"; export declare const PRESS_ENTER = "PRESS_ENTER"; export declare const PRESS_UP = "PRESS_UP"; export declare const RESET = "RESET"; export declare const UPDATE = "UPDATE"; interface EventPayload { event?: SyntheticEvent; } interface Action { type: Type; payload: EventPayload & ExtraPayload; } interface ValuePayload { value: string; } export declare type ChangeAction = Action; export declare type CommitAction = Action; export declare type PressUpAction = Action; export declare type PressDownAction = Action; export declare type PressEnterAction = Action; export declare type DragStartAction = Action; export declare type DragEndAction = Action; export declare type DragAction = Action; export declare type ResetAction = Action>; export declare type UpdateAction = Action; export declare type InvalidateAction = Action; export declare type ChangeEventAction = ChangeAction | ResetAction | CommitAction | UpdateAction; export declare type DragEventAction = DragStartAction | DragEndAction | DragAction; export declare type KeyEventAction = PressDownAction | PressUpAction | PressEnterAction; export declare type InputAction = ChangeEventAction | KeyEventAction | DragEventAction | InvalidateAction; export {}; //# sourceMappingURL=actions.d.ts.map