import PropTypes from 'prop-types'; import type { PropsWithChildren } from 'react'; import React from 'react'; import type { RichContent } from 'ricos-schema'; export declare const EditorEvents: { PUBLISH: string; RICOS_PUBLISH: string; }; export declare const EditorEventsContext: React.Context<{ subscribe(): () => void; unsubscribe(): void; dispatch(): Promise; publish(): Promise; }>; export interface EditorEventsProps { editorEvents: EditorContextProps; } type EditorContextProps = Omit; export declare const WithEditorEventsProps: { editorEvents: PropTypes.Requireable any>; unsubscribe: PropTypes.Requireable<(...args: any[]) => any>; dispatch: PropTypes.Requireable<(...args: any[]) => any>; publish: PropTypes.Requireable<(...args: any[]) => any>; }>>; }; export declare const withEditorEvents: (WrappedComponent: any) => (props: any) => React.JSX.Element; export declare class EditorEventsProvider extends React.Component { static propTypes: { children: PropTypes.Requireable; }; state: { subscribe: any; unsubscribe: any; dispatch: any; publish: any; }; events: {}; dispatch(event: any, data: any): Promise; publish(): Promise; subscribe(event: any, cb: any): () => void; unsubscribe(event: any, cb: any): void; render(): React.JSX.Element; } export declare const withEditorContext: (WrappedComponent: any) => (props: any) => React.JSX.Element; export {}; //# sourceMappingURL=EditorEventsContext.d.ts.map