/** * API Key Auth Tool Factory — Pre-built API Key Validation Tool * * Creates a complete MCP Fusion tool with validate and status actions. * * @example * ```ts * import { createApiKeyTool } from '@mcpfusion/api-key'; * * const apiKeyTool = createApiKeyTool({ * keys: ['sk_live_abc123'], * }); * ``` */ import type { ApiKeyManagerConfig } from './ApiKeyManager.js'; export interface ApiKeyToolConfig extends ApiKeyManagerConfig { /** Tool name in MCP. Default: 'api_key_auth' */ readonly toolName?: string; /** Tool description for the LLM. */ readonly description?: string; /** Tags for selective tool exposure. */ readonly tags?: string[]; /** Extract API key from context for the `status` action. */ readonly extractKey?: (ctx: TContext) => string | null | undefined; } /** * Creates a complete API key auth tool with validate and status actions. * * Actions: * - `validate` — Validate an API key and return metadata * - `status` — Check if API key is present/valid */ export declare function createApiKeyTool(config: ApiKeyToolConfig): import("@mcpfusion/core").GroupedToolBuilder, string, Record & { [x: `${string}.validate`]: Record; } & { [x: `${string}.status`]: Record; }>; //# sourceMappingURL=createApiKeyTool.d.ts.map