import * as React from 'react';
import { Block, BlockWrapperDataProps, PageContent } from "../../../models/index.js";
import { EditBlockProps, EditorProps } from "../../types/index.js";
export type EditorBlockId = number | string;
export declare function useMainState({ content: intialContent, custom }: Omit<EditorProps, 'children'>): {
    activeBlockIndex: number;
    content: PageContent;
    errorBoundaryState: number;
    injectEditBlockProps: ({ type, index: relativeIndex, children, ...rest }: BlockWrapperDataProps & React.PropsWithChildren) => EditBlockProps;
    onAdd: (block: Block) => void;
    onSelect: (index: number) => void;
    onContentUpdate: (newContent: PageContent) => void;
};
