//#region src/EditorEnabledContext.d.ts type EditorEnabledStateProps = { enabled: boolean; }; /** * Returns the current editor-enabled state, kept in sync with the shared * EditorStateManager. Replaces the old EditorEnabledContext + EditorEnabledProvider. */ declare const useEditorEnabled: () => EditorEnabledStateProps; /** * Subscribes to incoming "get" requests for editor-enabled state and calls * the provided callback so the caller can respond. * Used by the editor side to respond when the client asks for the current state. */ declare const useGetEditorEnabledState: (onRequest?: () => void) => void; /** * Returns a function that sets the editor-enabled state and broadcasts it. */ declare const usePostEditorEnabledState: () => (value: boolean) => void; declare const useEditorEnabledState: () => readonly [boolean, (value: boolean) => void]; /** * Returns a function that re-pings the client via ARE_YOU_THERE. * Use this as the onClick for an "Enable Editor" / reconnect button. */ declare const useEditorPingClient: () => (() => void); //#endregion export { EditorEnabledStateProps, useEditorEnabled, useEditorEnabledState, useEditorPingClient, useGetEditorEnabledState, usePostEditorEnabledState }; //# sourceMappingURL=EditorEnabledContext.d.ts.map