import type { Connector } from "../index.js"; import type { CommandAction, CommandData, CommandObject } from "./contract.js"; import { type ReactLynxCacheSnapshot } from "./reactlynx/controller.js"; import { type CommandResult } from "./result.js"; import { type Box, type SnapshotRef } from "./snapshot.js"; import { type DebugMetadataLoader } from "./source-info.js"; interface SnapshotEntry { createdAt: number; viewport: Box | undefined; refs: SnapshotRef[]; } export interface ActionContext { connector: Connector; } export type ActionHandlerResult = CommandResult>; /** * Shared action layer. The daemon owns the long-lived instance so DOM and * ReactLynx refs survive across independent CLI runs; stateless actions can * invoke the same implementation in-process. */ export declare class ActionCore { #private; constructor(loadDebugMetadata?: DebugMetadataLoader); has(action: string): boolean; hasStream(action: string): boolean; actions(): string[]; streamActions(): string[]; execute(action: string, params: CommandObject, ctx: ActionContext, signal?: AbortSignal): Promise; stream(action: string, params: CommandObject, ctx: ActionContext, signal: AbortSignal): AsyncGenerator; getSnapshot(clientId: string, sessionId: number): SnapshotEntry | undefined; getReactLynxCache(clientId: string, sessionId: number): ReactLynxCacheSnapshot | undefined; } export {};