import type { Component } from '../../component.js'; import type { ComponentSnapshot, ComponentEffects } from '../../types.js'; /** * Encapsulates component state during testing * Manages component, response, view, HTML, snapshot and effects */ export declare class ComponentState { component: Component; snapshot: ComponentSnapshot; effects: ComponentEffects; html: string; view: any; constructor(component: Component, snapshot: ComponentSnapshot, effects?: ComponentEffects, html?: string); /** * Get component property value * Supports nested properties like 'form.name' */ get(propertyName: string): any; /** * Get component memo data */ getMemo(key: string): any; /** * Get all component data */ getData(): Record; /** * Get component effects */ getEffects(): ComponentEffects; /** * Get rendered HTML */ getHtml(): string; /** * Get component instance */ getComponent(): Component; /** * Get component snapshot */ getSnapshot(): ComponentSnapshot; /** * Update component state from new snapshot */ update(snapshot: ComponentSnapshot, effects?: ComponentEffects, html?: string): void; }