UNPKG

matrix-react-sdk

Version:
14 lines (13 loc) 607 B
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;