export declare function splitTopLevel(expression: string, operator: '&&' | '||'): string[]; /** Strips one layer of enclosing parens — only when the opening `(` at index 0 is the match for * the closing `)` at the end, not e.g. `(a) && (b)` which merely starts and ends with parens. */ export declare function hasTopLevelMixedOperators(expression: string): boolean; /** * Splits `condition` into its non-status `&&` clauses and its implied status restriction. A status * function can appear anywhere among the top-level `&&` clauses (e.g. `always() && vars.X == 'true'`), * not just as the entire condition, so every clause is checked rather than only a whole-string match — * including wrapped forms like `!cancelled()`, see `classifyStatusClause`. Mixing two different status * functions in one condition (`success() && failure()`, never valid in practice) is treated as `other` * — the same conservative "can't reason about it" fallback as an unrecognized shape elsewhere in this * file. A top-level `&&`/`||` mix, or a status function nested inside an OR branch (e.g. * `always() || vars.FORCE`, see `hasStatusFunctionInOrBranch`), is flagged `ambiguous` instead, since * neither shape is safe to decompose into clauses. */