import { BlockType } from "../constants"; import { IBlockData, IEmailTemplate } from "../typings"; export declare function useBlock(): { values: IEmailTemplate; change: (name: F, value?: any) => void; focusBlock: IBlockData | null; setFocusBlock: import("lodash").DebouncedFunc<(val: any) => void>; setFocusBlockValue: import("lodash").DebouncedFunc<(val: any) => void>; setValueByIdx: import("lodash").DebouncedFunc<(>(idx: string, newVal: T) => void)>; addBlock: (params: { type: BlockType; parentIdx: string; positionIndex?: number; payload?: any; canReplace?: boolean; }) => void; moveBlock: (sourceIdx: string, destinationIdx: string) => null | undefined; copyBlock: (idx: string) => void; removeBlock: (idx: string) => void; isExistBlock: (idx: string) => boolean; redo: () => void; undo: () => void; reset: () => void; redoable: boolean; undoable: boolean; };