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; l: never; x: never; j?: never; p?: Record; } export declare const _resumed: Record; export declare function ready(readyId: string): void; export declare function readyFailed(readyId: string): void; export declare function withLazy(): 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): T; export declare function _var_resume>(id: string, signal: T): T; export declare function _el(id: string, accessor: EncodedAccessor): (scope: Scope) => (_?: never) => any; export declare function _dynamic_tag_var_resume(accessor: EncodedAccessor): void; export {};