/** * The current state of a context instance. */ export interface ContextInstanceState { /** Combined identifier in format 'contextSlug:instanceId'. */ context?: string | undefined; /** The current base field values for this instance. */ state?: Record | undefined; /** Computed/derived field values from bound rules. */ derived?: Record | undefined; /** Whether all required fields are present ('complete') or some are missing ('pending'). */ status?: ContextInstanceState.Status | undefined; /** List of field keys that are currently populated. */ have?: string[] | undefined; /** List of required field keys that are missing (empty when status is 'complete'). */ need?: string[] | undefined; /** When the instance was first created. */ created_at?: string | undefined; /** When the instance was last updated. */ updated_at?: string | undefined; /** When the instance will expire based on context TTL. */ expires_at?: (string | null) | undefined; } export declare namespace ContextInstanceState { /** Whether all required fields are present ('complete') or some are missing ('pending'). */ const Status: { readonly Complete: "complete"; readonly Pending: "pending"; }; type Status = (typeof Status)[keyof typeof Status]; }