import type { Condition } from '../_generated/index.js'; /** * Fluent builder for constructing a list of conditions. * * Uses default values for origin, type, and operator which can be overridden. * * Example: * ```typescript * import { ConditionSet } from '@groundcover/api-client'; * * const conditions = new ConditionSet() * .add("namespace", "production") * .add("reason", "OOMKilled") * .addOomEventConditions() * .build(); * ``` */ export declare class ConditionSet { private conditions; private defaultOrigin; private defaultCondType; private defaultOperator; constructor(defaultOrigin?: string, defaultCondType?: string, defaultOperator?: string); /** * Add a condition, inferring the type from the JavaScript value type. * * Supports: string, string[], number (int/float inferred heuristically), boolean, Date. */ add(key: string, value: unknown): ConditionSet; /** Add a condition with explicit origin, type, operator, and value. */ addFull(key: string, origin: string, condType: string, value: string, operator: string): ConditionSet; /** Add a pre-constructed condition object directly. */ addRaw(condition: Condition): ConditionSet; /** * Add predefined conditions to identify OOM events. * Adds reason=OOMKilled and type=container_crash. */ addOomEventConditions(): ConditionSet; /** Return the final list of condition objects. */ build(): Condition[]; private addInternal; /** * Infer condition type and string value from a JavaScript value. * Returns [valueStr, condType]. */ private inferType; }