/** * LeaderChildBuilder - Fluent API for creating leader-child hierarchies * * @example * ```typescript * const { leader, tool } = await new LeaderChildBuilder(MyTool) * .withToolConfig({ apiKey: 'test' }) * .withLeaderAddress('o://test-leader') * .build(env); * ``` */ import type { oNode, oNodeAddress } from '@olane/o-node'; import type { TestEnvironment, TestNodeConfig, ToolWithLeaderResult } from '../test-environment.js'; export interface LeaderConfig { address?: oNodeAddress; description?: string; autoStart?: boolean; } export declare class LeaderChildBuilder { private toolClass; private toolConfig; private leaderClass?; private leaderConfig; constructor(ToolClass: new (config: any) => T); /** * Set tool configuration */ withToolConfig(config: TestNodeConfig): this; /** * Set leader class (optional, defaults to oLeaderNode) */ withLeaderClass(LeaderClass: new (config: any) => any): this; /** * Set leader configuration */ withLeaderConfig(config: LeaderConfig): this; /** * Set leader address */ withLeaderAddress(address: string | oNodeAddress): this; /** * Set leader description */ withLeaderDescription(description: string): this; /** * Build and create the leader-child hierarchy */ build(env: TestEnvironment): Promise>; } //# sourceMappingURL=leader-child-builder.d.ts.map