import { Identifier, Action } from '../interfaces'; export interface Meta { event: object; } export interface State { itemType: Identifier | Identifier[] | null; item: any; itemOption: any; sourceId: string | null; targetIds: string[]; dropResult: any; didDrop: boolean; isSourcePublic: boolean | null; meta: Meta; } export default function dragOperation(state: State | undefined, action: Action<{ itemType: Identifier | Identifier[]; item: any; itemOption: any; sourceId: string; targetId: string; targetIds: string[]; isSourcePublic: boolean; dropResult: any; meta: Meta; }>): { targetIds: any; itemType: string | symbol | (string | symbol)[] | null; item: any; itemOption: any; sourceId: string | null; dropResult: any; didDrop: boolean; isSourcePublic: boolean | null; meta: Meta; };