import type * as Rulebricks from "../index.js"; /** * Response after solving a rule against a context instance. */ export interface SolveContextRuleResponse { /** Whether the rule executed successfully. */ status?: SolveContextRuleResponse.Status | undefined; /** Combined identifier in format 'contextSlug:instanceId'. */ context?: string | undefined; /** The slug of the rule that was executed. */ rule?: string | undefined; /** The rule evaluation result (output values). */ result?: Record | undefined; /** List of field keys that were written back to the context instance. */ written_to_context?: string[] | undefined; /** Results from any cascaded evaluations triggered by the rule outputs. */ cascaded?: Rulebricks.CascadeResult[] | undefined; } export declare namespace SolveContextRuleResponse { /** Whether the rule executed successfully. */ const Status: { readonly Solved: "solved"; readonly Error: "error"; }; type Status = (typeof Status)[keyof typeof Status]; }