/** * Factory for creating tooled-prompt instances * * Supports configuration priority (highest to lowest): * 1. Per-call config (passed to executor) * 2. Instance config (factory initial, mutated by setConfig) * 3. Hardcoded defaults */ import { type TooledPromptConfig, type TooledPromptInstance } from './types.js'; /** * Create a tooled-prompt instance with its own configuration * * @param config - Initial configuration (optional) * @returns A tooled-prompt instance with prompt, tool, setConfig, on, and off * * @example * ```typescript * // Create with defaults (silent) * const { prompt, tool, setConfig, on } = createTooledPrompt(); * * // Create with custom config * const anthropic = createTooledPrompt({ * apiUrl: 'https://api.anthropic.com/v1', * apiKey: process.env.ANTHROPIC_API_KEY, * }); * * // Multiple isolated instances * const openai = createTooledPrompt({ apiUrl: 'https://api.openai.com/v1' }); * const local = createTooledPrompt({ apiUrl: 'http://localhost:8080/v1' }); * ``` */ export declare function createTooledPrompt(initialConfig?: TooledPromptConfig): TooledPromptInstance; //# sourceMappingURL=factory.d.ts.map