UNPKG

@donverduyn/react-runtime

Version:
19 lines (18 loc) 831 B
import type { ComponentId, DeclarationId, RegisterId } from '@/types'; import type { ChildrenSketch } from './react/children'; export declare const ROOT_NS: string; export declare const LIB_NS: string; export declare const CUM_SIG_NS: string; export declare function createGhostId(regId: RegisterId): string; export declare function createIdFactory(declId: string): ((instId: string, salt: number | null) => string) & { baseId: (instId: string) => string; withTrail: (cumSig: string, instId: string, salt: number | null) => string; }; export declare function combineV5(parentCum: string, decl: string, inst: string): string; export type EdgeDataFields = { props: Record<string, unknown>; declarationId: DeclarationId; componentId: ComponentId; registerId: RegisterId; childrenSketch: ChildrenSketch; };