declare module "@quixos/web-studio-react-runtime" { export type ObjectRef = string & { readonly $quixosAtom: AtomId; }; export type LiveFieldProp = { value: T; source: { objectId: string; slotId: string; valueType?: string; storagePolicy?: string; revision?: string | number | bigint; crdtSnapshot?: { type: string; encoding: string; payload: string; }; }; }; export type ReactComponentHostProps = { onAction?: (action: Action) => void; fallback?: unknown; className?: string; style?: Record; onError?: (error: Error) => void; }; export type ReactComponentImplementationProps = { camino: CaminoProps; render: RenderProps; dispatch: (action: Action) => void; }; export const createWebStudioComponent: < ForObject extends ObjectRef, RenderProps extends object, Action, >(config: { expectedAtomId: string }) => (props: { forObject: ForObject; } & RenderProps & ReactComponentHostProps) => any; export const invokeCapability: ( objectId: string, interfaceRevisionId: string, operationId: string, value?: unknown, ) => Promise; export const h: (...args: any[]) => any; export const useLiveField: ( field: LiveFieldProp, options?: { reconcileRegister?: (state: { confirmed: T; optimistic: T; pending: boolean; }) => T; }, ) => [T, (value: T) => void | Promise]; }