import { type AwaitCounter, type EncodedAccessor, type Scope } from "../common/types"; import { type Signal } from "./signals"; type ResumeFn = (ctx: SerializeContext) => unknown; type ResumeData = (string | number | (string | number)[] | ResumeFn)[]; interface SerializeContext { (data: number | (Scope | number)[], registryId?: string): unknown; _: Record; } export interface Renders { (renderId: string): RenderData; [renderId: string]: RenderData; } export interface RenderData { i: string; v: Comment[]; r?: ResumeData; w(): void; m?(effects: unknown[]): unknown[]; b?: Record; d: never; l: never; x: never; j?: never; p?: Record; } export declare function enableBranches(): void; export declare function ready(readyId: string): void; export declare function initEmbedded(readyId: string, runtimeId?: string): void; export declare function init(runtimeId?: string): void; export declare let isResuming: undefined | 0 | 1; export declare function getRegisteredWithScope(id: string, scope?: Scope): unknown; export declare function _resume(id: string, obj: T): T; export declare function _var_resume>(id: string, signal: T): T; export declare function _el(id: string, accessor: EncodedAccessor): (scope: Scope) => () => any; export {};