import { IEventRelation } from "matrix-js-sdk/src/matrix";
import { SubSelection } from "./types";
import EditorStateTransfer from "../../../../utils/EditorStateTransfer";
export declare function getDefaultContextValue(defaultValue?: Partial<ComposerContextState>): {
    selection: SubSelection;
};
export interface ComposerContextState {
    selection: SubSelection;
    editorStateTransfer?: EditorStateTransfer;
    eventRelation?: IEventRelation;
}
export declare const ComposerContext: import("react").Context<ComposerContextState>;
export declare function useComposerContext(): ComposerContextState;
