UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

17 lines (16 loc) 626 B
import * as React from 'react'; import type { ValueSyncStore } from '../../../util/events/sync-store'; import type { PeritextSurfaceState } from '../../web'; import type { DebugState } from './state'; export interface DebugRenderersContextValue { state: DebugState; flags: { dom: ValueSyncStore<boolean>; editor: ValueSyncStore<boolean>; peritext: ValueSyncStore<boolean>; model: ValueSyncStore<boolean>; }; ctx: PeritextSurfaceState; } export declare const context: React.Context<DebugRenderersContextValue>; export declare const useDebugCtx: () => DebugRenderersContextValue;