/** * Miniscript expression parser. * Builds a lightweight AST shared by the compiler and analyzer. * See COMPILER.md for the AST shape and examples. */ export type Node = { type: '0' | '1'; } | { type: 'pk_k' | 'pk_h'; key: string; } | { type: 'older' | 'after' | 'sha256' | 'ripemd160' | 'hash256' | 'hash160'; value: string; } | { type: 'multi' | 'multi_a'; k: string; keys: string[]; } | { type: 'thresh'; k: string; subs: Node[]; } | { type: 'and_v' | 'and_b' | 'or_b' | 'or_c' | 'or_d' | 'or_i'; args: [Node, Node]; } | { type: 'andor'; args: [Node, Node, Node]; } | { type: 'a' | 's' | 'c' | 'd' | 'v' | 'j' | 'n'; arg: Node; }; /** Parse a Miniscript expression into an AST node. */ export declare const parseExpression: ( /** Raw miniscript expression. */ input: string) => Node;