/**
 * State Reference System
 *
 * Provides automatic serialization and deserialization of object references in state.
 * This allows storing complex objects (WorkflowInstance, ConversationInstance, etc.)
 * in state without actually persisting the full object.
 *
 * Objects that support state references must implement the StateReference symbol.
 */
import { StateReference, type StateReferenceable } from './state-reference-symbol';
export { StateReference, type StateReferenceable };
/**
 * Type for a serialized state reference
 */
export type SerializedReference = {
    __ref__: string;
    id: string;
    [key: string]: any;
};
/**
 * Recursively serialize all state-referenceable objects to references
 *
 * @param value - The value to serialize
 * @param seen - WeakSet to track circular references
 * @returns Serialized value with references replaced
 */
export declare function serializeStateReferences(value: any, seen?: WeakSet<object>): any;
/**
 * Recursively deserialize all state references by loading the actual objects
 *
 * @param value - The value to deserialize
 * @throws Error if too many references or loading takes too long
 */
export declare function deserializeStateReferences(value: any): Promise<void>;
//# sourceMappingURL=state-references.d.ts.map