import React, { type PropsWithChildren } from "react"; export interface TamboMcpTokenContextProps { /** * The current MCP access token for the internal Tambo MCP server. */ mcpAccessToken: string | null; /** * The base URL for the Tambo API (used to construct the MCP server URL) * Returns undefined if the client is not yet initialized */ tamboBaseUrl: string | undefined; } /** * Provider for managing the MCP access token that is returned by the Tambo API. * This token is used to authenticate with the internal Tambo MCP server. * * Exposes the base URL and a null token by default. Token fetching is handled * by the useTamboMcpToken hook which supports contextKey-based token retrieval. * @internal * @param props - The provider props * @param props.children - The children to wrap * @returns The TamboMcpTokenProvider component */ export declare const TamboMcpTokenProvider: React.FC; /** * Hook to access the current MCP access token with optional token fetching. * * Token fetching logic: * - If contextKey is provided → fetches a token using that contextKey * - Otherwise → returns null * @param contextKey - Optional context key for fetching tokens * @returns The current MCP access token and base URL */ export declare const useTamboMcpToken: (contextKey?: string) => TamboMcpTokenContextProps; //# sourceMappingURL=tambo-mcp-token-provider.d.ts.map