/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type EastTypeValue } from '@elaraai/east'; import type { ConstraintValue } from './handle-runtime.js'; /** * Whether the editor can edit a lever's payload: a bare primitive, a struct * of primitives, or an op variant whose case payloads are primitives or * structs of primitives. * * @param payload - The contract case's payload type; `undefined` when the * contract is not known yet * @returns Whether the lever gets an editor */ export declare function leverPayloadEditable(payload: EastTypeValue | undefined): boolean; export interface LeverEditorProps { /** The contract case name this lever injects. */ leverCase: string; /** The case's payload type, from the solution's contract. */ payload: EastTypeValue; onInject: (constraint: ConstraintValue) => void; } export declare function LeverEditor({ leverCase, payload, onInject }: LeverEditorProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=lever-editor.d.ts.map