import { DiffsEditor } from "../types.js"; import { EditorOptions } from "../editor/editor.js"; import { Context, PropsWithChildren } from "react"; //#region src/react/EditContext.d.ts /** Creates an Editor. Components manage the instance lifecycle. */ type CreateEditor = (options: EditorOptions) => DiffsEditor; interface EditProviderProps { /** Combines shared defaults with the supplied per-surface options. */ createEditor: CreateEditor; } declare const EditContext: Context | undefined>; declare function EditProvider({ children, createEditor }: PropsWithChildren>): React.JSX.Element; declare function useCreateEditor(): CreateEditor | undefined; //#endregion export { CreateEditor, EditContext, EditProvider, EditProviderProps, useCreateEditor }; //# sourceMappingURL=EditContext.d.ts.map