@blockrun/llm 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -504,6 +504,15 @@ declare class LLMClient {
504
504
  * Handle 402 response for raw endpoints: parse requirements, sign payment, retry.
505
505
  */
506
506
  private handlePaymentAndRetryRaw;
507
+ /**
508
+ * GET with automatic x402 payment handling, returning raw JSON.
509
+ * Used for Predexon prediction market endpoints that use GET + query params.
510
+ */
511
+ private getWithPaymentRaw;
512
+ /**
513
+ * Handle 402 response for GET endpoints: parse requirements, sign payment, retry with GET.
514
+ */
515
+ private handleGetPaymentAndRetryRaw;
507
516
  /**
508
517
  * Fetch with timeout.
509
518
  */
@@ -691,6 +700,33 @@ declare class LLMClient {
691
700
  * @param handle2 - Second X/Twitter handle (without @)
692
701
  */
693
702
  xCompareAuthors(handle1: string, handle2: string): Promise<XCompareAuthorsResponse>;
703
+ /**
704
+ * Query Predexon prediction market data (GET endpoints).
705
+ *
706
+ * Access real-time data from Polymarket, Kalshi, dFlow, and Binance Futures.
707
+ * Powered by Predexon. $0.001 per request.
708
+ *
709
+ * @param path - Endpoint path, e.g. "polymarket/events", "kalshi/markets/12345"
710
+ * @param params - Query parameters passed to the endpoint
711
+ *
712
+ * @example
713
+ * const events = await client.pm("polymarket/events");
714
+ * const market = await client.pm("kalshi/markets/KXBTC-25MAR14");
715
+ * const results = await client.pm("polymarket/search", { q: "bitcoin" });
716
+ */
717
+ pm(path: string, params?: Record<string, string>): Promise<Record<string, unknown>>;
718
+ /**
719
+ * Structured query for Predexon prediction market data (POST endpoints).
720
+ *
721
+ * For complex queries that require a JSON body. $0.005 per request.
722
+ *
723
+ * @param path - Endpoint path, e.g. "polymarket/query", "kalshi/query"
724
+ * @param query - JSON body for the structured query
725
+ *
726
+ * @example
727
+ * const data = await client.pmQuery("polymarket/query", { filter: "active", limit: 10 });
728
+ */
729
+ pmQuery(path: string, query: Record<string, unknown>): Promise<Record<string, unknown>>;
694
730
  /**
695
731
  * Get current session spending.
696
732
  *
@@ -898,9 +934,26 @@ declare function createWallet(): {
898
934
  * @returns Path to saved wallet file
899
935
  */
900
936
  declare function saveWallet(privateKey: string): string;
937
+ /**
938
+ * Scan ~/.<dir>/wallet.json files from any provider (agentcash, etc.).
939
+ *
940
+ * Each file should contain JSON with "privateKey" and "address" fields.
941
+ * Results are sorted by modification time (most recent first).
942
+ *
943
+ * @returns Array of wallet objects with privateKey and address
944
+ */
945
+ declare function scanWallets(): Array<{
946
+ privateKey: string;
947
+ address: string;
948
+ }>;
901
949
  /**
902
950
  * Load wallet private key from file.
903
951
  *
952
+ * Priority:
953
+ * 1. Scan ~/.* /wallet.json (any provider)
954
+ * 2. Legacy ~/.blockrun/.session
955
+ * 3. Legacy ~/.blockrun/wallet.key
956
+ *
904
957
  * @returns Private key string or null if not found
905
958
  */
906
959
  declare function loadWallet(): string | null;
@@ -909,9 +962,10 @@ declare function loadWallet(): string | null;
909
962
  *
910
963
  * Priority:
911
964
  * 1. BLOCKRUN_WALLET_KEY environment variable
912
- * 2. ~/.blockrun/.session file
913
- * 3. ~/.blockrun/wallet.key file (legacy)
914
- * 4. Create new wallet
965
+ * 2. Scan wallet.json files from providers
966
+ * 3. ~/.blockrun/.session file
967
+ * 4. ~/.blockrun/wallet.key file - legacy
968
+ * 5. Create new wallet
915
969
  *
916
970
  * @returns WalletInfo with address, privateKey, and isNew flag
917
971
  */
@@ -1029,6 +1083,8 @@ declare class SolanaLLMClient {
1029
1083
  xArticlesRising(): Promise<XArticlesRisingResponse>;
1030
1084
  xAuthorAnalytics(handle: string): Promise<XAuthorAnalyticsResponse>;
1031
1085
  xCompareAuthors(handle1: string, handle2: string): Promise<XCompareAuthorsResponse>;
1086
+ pm(path: string, params?: Record<string, string>): Promise<Record<string, unknown>>;
1087
+ pmQuery(path: string, query: Record<string, unknown>): Promise<Record<string, unknown>>;
1032
1088
  /** Get session spending. */
1033
1089
  getSpending(): Spending;
1034
1090
  /** True if using sol.blockrun.ai. */
@@ -1037,6 +1093,8 @@ declare class SolanaLLMClient {
1037
1093
  private handlePaymentAndRetry;
1038
1094
  private requestWithPaymentRaw;
1039
1095
  private handlePaymentAndRetryRaw;
1096
+ private getWithPaymentRaw;
1097
+ private handleGetPaymentAndRetryRaw;
1040
1098
  private fetchWithTimeout;
1041
1099
  }
1042
1100
  /**
@@ -1068,9 +1126,60 @@ declare function solanaKeyToBytes(privateKey: string): Promise<Uint8Array>;
1068
1126
  */
1069
1127
  declare function solanaPublicKey(privateKey: string): Promise<string>;
1070
1128
  declare function saveSolanaWallet(privateKey: string): string;
1129
+ /**
1130
+ * Scan ~/.<dir>/solana-wallet.json files from any provider.
1131
+ *
1132
+ * Each file should contain JSON with "privateKey" and "address" fields.
1133
+ * Also checks ~/.brcc/wallet.json for BRCC wallets.
1134
+ * Results are sorted by modification time (most recent first).
1135
+ *
1136
+ * @returns Array of wallet objects with secretKey and publicKey
1137
+ */
1138
+ declare function scanSolanaWallets(): Array<{
1139
+ secretKey: string;
1140
+ publicKey: string;
1141
+ }>;
1071
1142
  declare function loadSolanaWallet(): string | null;
1072
1143
  declare function getOrCreateSolanaWallet(): Promise<SolanaWalletInfo>;
1073
1144
 
1145
+ declare function getCached(key: string): unknown | null;
1146
+ declare function getCachedByRequest(endpoint: string, body: Record<string, unknown>): unknown | null;
1147
+ declare function setCache(key: string, data: unknown, ttlMs: number): void;
1148
+ declare function saveToCache(endpoint: string, body: Record<string, unknown>, response: unknown, costUsd?: number): void;
1149
+ declare function clearCache(): number;
1150
+
1151
+ /**
1152
+ * Agent wallet setup utilities.
1153
+ *
1154
+ * Convenience functions for agent runtimes (Claude Code skills, etc.)
1155
+ * that auto-create wallets and return configured clients.
1156
+ */
1157
+
1158
+ declare function setupAgentWallet(options?: {
1159
+ silent?: boolean;
1160
+ }): LLMClient;
1161
+ declare function setupAgentSolanaWallet(options?: {
1162
+ silent?: boolean;
1163
+ }): Promise<SolanaLLMClient>;
1164
+ declare function status(): Promise<{
1165
+ address: string;
1166
+ balance: number;
1167
+ }>;
1168
+
1169
+ interface CostEntry {
1170
+ timestamp: string;
1171
+ model: string;
1172
+ inputTokens: number;
1173
+ outputTokens: number;
1174
+ costUsd: number;
1175
+ }
1176
+ declare function logCost(entry: CostEntry): void;
1177
+ declare function getCostSummary(): {
1178
+ totalUsd: number;
1179
+ calls: number;
1180
+ byModel: Record<string, number>;
1181
+ };
1182
+
1074
1183
  /**
1075
1184
  * OpenAI-compatible API wrapper for BlockRun LLM SDK.
1076
1185
  *
@@ -1210,4 +1319,4 @@ declare class OpenAI {
1210
1319
  getWalletAddress(): string;
1211
1320
  }
1212
1321
 
1213
- export { APIError, BASE_CHAIN_ID, BlockrunError, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatUsage, type FunctionCall, type FunctionDefinition, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, LLMClient, type LLMClientOptions, type Model, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PaymentError, type PaymentLinks, type RoutingDecision, type RoutingProfile, type RoutingTier, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type Spending, type Tool, type ToolCall, type ToolChoice, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XArticlesRisingResponse, type XAuthorAnalyticsResponse, type XCompareAuthorsResponse, type XFollower, type XFollowersResponse, type XFollowingsResponse, type XMentionsResponse, type XSearchResponse, type XSearchSource, type XTrendingResponse, type XTweet, type XTweetLookupResponse, type XTweetRepliesResponse, type XTweetThreadResponse, type XTweetsResponse, type XUser, type XUserInfoResponse, type XUserLookupResponse, type XVerifiedFollowersResponse, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, formatFundingMessageCompact, formatNeedsFundingMessage, formatWalletCreatedMessage, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, loadSolanaWallet, loadWallet, saveSolanaWallet, saveWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, testnetClient };
1322
+ export { APIError, BASE_CHAIN_ID, BlockrunError, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatUsage, type CostEntry, type FunctionCall, type FunctionDefinition, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, LLMClient, type LLMClientOptions, type Model, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PaymentError, type PaymentLinks, type RoutingDecision, type RoutingProfile, type RoutingTier, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type Spending, type Tool, type ToolCall, type ToolChoice, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XArticlesRisingResponse, type XAuthorAnalyticsResponse, type XCompareAuthorsResponse, type XFollower, type XFollowersResponse, type XFollowingsResponse, type XMentionsResponse, type XSearchResponse, type XSearchSource, type XTrendingResponse, type XTweet, type XTweetLookupResponse, type XTweetRepliesResponse, type XTweetThreadResponse, type XTweetsResponse, type XUser, type XUserInfoResponse, type XUserLookupResponse, type XVerifiedFollowersResponse, clearCache, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, formatFundingMessageCompact, formatNeedsFundingMessage, formatWalletCreatedMessage, getCached, getCachedByRequest, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, loadSolanaWallet, loadWallet, logCost, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, testnetClient };
package/dist/index.d.ts CHANGED
@@ -504,6 +504,15 @@ declare class LLMClient {
504
504
  * Handle 402 response for raw endpoints: parse requirements, sign payment, retry.
505
505
  */
506
506
  private handlePaymentAndRetryRaw;
507
+ /**
508
+ * GET with automatic x402 payment handling, returning raw JSON.
509
+ * Used for Predexon prediction market endpoints that use GET + query params.
510
+ */
511
+ private getWithPaymentRaw;
512
+ /**
513
+ * Handle 402 response for GET endpoints: parse requirements, sign payment, retry with GET.
514
+ */
515
+ private handleGetPaymentAndRetryRaw;
507
516
  /**
508
517
  * Fetch with timeout.
509
518
  */
@@ -691,6 +700,33 @@ declare class LLMClient {
691
700
  * @param handle2 - Second X/Twitter handle (without @)
692
701
  */
693
702
  xCompareAuthors(handle1: string, handle2: string): Promise<XCompareAuthorsResponse>;
703
+ /**
704
+ * Query Predexon prediction market data (GET endpoints).
705
+ *
706
+ * Access real-time data from Polymarket, Kalshi, dFlow, and Binance Futures.
707
+ * Powered by Predexon. $0.001 per request.
708
+ *
709
+ * @param path - Endpoint path, e.g. "polymarket/events", "kalshi/markets/12345"
710
+ * @param params - Query parameters passed to the endpoint
711
+ *
712
+ * @example
713
+ * const events = await client.pm("polymarket/events");
714
+ * const market = await client.pm("kalshi/markets/KXBTC-25MAR14");
715
+ * const results = await client.pm("polymarket/search", { q: "bitcoin" });
716
+ */
717
+ pm(path: string, params?: Record<string, string>): Promise<Record<string, unknown>>;
718
+ /**
719
+ * Structured query for Predexon prediction market data (POST endpoints).
720
+ *
721
+ * For complex queries that require a JSON body. $0.005 per request.
722
+ *
723
+ * @param path - Endpoint path, e.g. "polymarket/query", "kalshi/query"
724
+ * @param query - JSON body for the structured query
725
+ *
726
+ * @example
727
+ * const data = await client.pmQuery("polymarket/query", { filter: "active", limit: 10 });
728
+ */
729
+ pmQuery(path: string, query: Record<string, unknown>): Promise<Record<string, unknown>>;
694
730
  /**
695
731
  * Get current session spending.
696
732
  *
@@ -898,9 +934,26 @@ declare function createWallet(): {
898
934
  * @returns Path to saved wallet file
899
935
  */
900
936
  declare function saveWallet(privateKey: string): string;
937
+ /**
938
+ * Scan ~/.<dir>/wallet.json files from any provider (agentcash, etc.).
939
+ *
940
+ * Each file should contain JSON with "privateKey" and "address" fields.
941
+ * Results are sorted by modification time (most recent first).
942
+ *
943
+ * @returns Array of wallet objects with privateKey and address
944
+ */
945
+ declare function scanWallets(): Array<{
946
+ privateKey: string;
947
+ address: string;
948
+ }>;
901
949
  /**
902
950
  * Load wallet private key from file.
903
951
  *
952
+ * Priority:
953
+ * 1. Scan ~/.* /wallet.json (any provider)
954
+ * 2. Legacy ~/.blockrun/.session
955
+ * 3. Legacy ~/.blockrun/wallet.key
956
+ *
904
957
  * @returns Private key string or null if not found
905
958
  */
906
959
  declare function loadWallet(): string | null;
@@ -909,9 +962,10 @@ declare function loadWallet(): string | null;
909
962
  *
910
963
  * Priority:
911
964
  * 1. BLOCKRUN_WALLET_KEY environment variable
912
- * 2. ~/.blockrun/.session file
913
- * 3. ~/.blockrun/wallet.key file (legacy)
914
- * 4. Create new wallet
965
+ * 2. Scan wallet.json files from providers
966
+ * 3. ~/.blockrun/.session file
967
+ * 4. ~/.blockrun/wallet.key file - legacy
968
+ * 5. Create new wallet
915
969
  *
916
970
  * @returns WalletInfo with address, privateKey, and isNew flag
917
971
  */
@@ -1029,6 +1083,8 @@ declare class SolanaLLMClient {
1029
1083
  xArticlesRising(): Promise<XArticlesRisingResponse>;
1030
1084
  xAuthorAnalytics(handle: string): Promise<XAuthorAnalyticsResponse>;
1031
1085
  xCompareAuthors(handle1: string, handle2: string): Promise<XCompareAuthorsResponse>;
1086
+ pm(path: string, params?: Record<string, string>): Promise<Record<string, unknown>>;
1087
+ pmQuery(path: string, query: Record<string, unknown>): Promise<Record<string, unknown>>;
1032
1088
  /** Get session spending. */
1033
1089
  getSpending(): Spending;
1034
1090
  /** True if using sol.blockrun.ai. */
@@ -1037,6 +1093,8 @@ declare class SolanaLLMClient {
1037
1093
  private handlePaymentAndRetry;
1038
1094
  private requestWithPaymentRaw;
1039
1095
  private handlePaymentAndRetryRaw;
1096
+ private getWithPaymentRaw;
1097
+ private handleGetPaymentAndRetryRaw;
1040
1098
  private fetchWithTimeout;
1041
1099
  }
1042
1100
  /**
@@ -1068,9 +1126,60 @@ declare function solanaKeyToBytes(privateKey: string): Promise<Uint8Array>;
1068
1126
  */
1069
1127
  declare function solanaPublicKey(privateKey: string): Promise<string>;
1070
1128
  declare function saveSolanaWallet(privateKey: string): string;
1129
+ /**
1130
+ * Scan ~/.<dir>/solana-wallet.json files from any provider.
1131
+ *
1132
+ * Each file should contain JSON with "privateKey" and "address" fields.
1133
+ * Also checks ~/.brcc/wallet.json for BRCC wallets.
1134
+ * Results are sorted by modification time (most recent first).
1135
+ *
1136
+ * @returns Array of wallet objects with secretKey and publicKey
1137
+ */
1138
+ declare function scanSolanaWallets(): Array<{
1139
+ secretKey: string;
1140
+ publicKey: string;
1141
+ }>;
1071
1142
  declare function loadSolanaWallet(): string | null;
1072
1143
  declare function getOrCreateSolanaWallet(): Promise<SolanaWalletInfo>;
1073
1144
 
1145
+ declare function getCached(key: string): unknown | null;
1146
+ declare function getCachedByRequest(endpoint: string, body: Record<string, unknown>): unknown | null;
1147
+ declare function setCache(key: string, data: unknown, ttlMs: number): void;
1148
+ declare function saveToCache(endpoint: string, body: Record<string, unknown>, response: unknown, costUsd?: number): void;
1149
+ declare function clearCache(): number;
1150
+
1151
+ /**
1152
+ * Agent wallet setup utilities.
1153
+ *
1154
+ * Convenience functions for agent runtimes (Claude Code skills, etc.)
1155
+ * that auto-create wallets and return configured clients.
1156
+ */
1157
+
1158
+ declare function setupAgentWallet(options?: {
1159
+ silent?: boolean;
1160
+ }): LLMClient;
1161
+ declare function setupAgentSolanaWallet(options?: {
1162
+ silent?: boolean;
1163
+ }): Promise<SolanaLLMClient>;
1164
+ declare function status(): Promise<{
1165
+ address: string;
1166
+ balance: number;
1167
+ }>;
1168
+
1169
+ interface CostEntry {
1170
+ timestamp: string;
1171
+ model: string;
1172
+ inputTokens: number;
1173
+ outputTokens: number;
1174
+ costUsd: number;
1175
+ }
1176
+ declare function logCost(entry: CostEntry): void;
1177
+ declare function getCostSummary(): {
1178
+ totalUsd: number;
1179
+ calls: number;
1180
+ byModel: Record<string, number>;
1181
+ };
1182
+
1074
1183
  /**
1075
1184
  * OpenAI-compatible API wrapper for BlockRun LLM SDK.
1076
1185
  *
@@ -1210,4 +1319,4 @@ declare class OpenAI {
1210
1319
  getWalletAddress(): string;
1211
1320
  }
1212
1321
 
1213
- export { APIError, BASE_CHAIN_ID, BlockrunError, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatUsage, type FunctionCall, type FunctionDefinition, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, LLMClient, type LLMClientOptions, type Model, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PaymentError, type PaymentLinks, type RoutingDecision, type RoutingProfile, type RoutingTier, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type Spending, type Tool, type ToolCall, type ToolChoice, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XArticlesRisingResponse, type XAuthorAnalyticsResponse, type XCompareAuthorsResponse, type XFollower, type XFollowersResponse, type XFollowingsResponse, type XMentionsResponse, type XSearchResponse, type XSearchSource, type XTrendingResponse, type XTweet, type XTweetLookupResponse, type XTweetRepliesResponse, type XTweetThreadResponse, type XTweetsResponse, type XUser, type XUserInfoResponse, type XUserLookupResponse, type XVerifiedFollowersResponse, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, formatFundingMessageCompact, formatNeedsFundingMessage, formatWalletCreatedMessage, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, loadSolanaWallet, loadWallet, saveSolanaWallet, saveWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, testnetClient };
1322
+ export { APIError, BASE_CHAIN_ID, BlockrunError, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatUsage, type CostEntry, type FunctionCall, type FunctionDefinition, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, LLMClient, type LLMClientOptions, type Model, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PaymentError, type PaymentLinks, type RoutingDecision, type RoutingProfile, type RoutingTier, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type Spending, type Tool, type ToolCall, type ToolChoice, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XArticlesRisingResponse, type XAuthorAnalyticsResponse, type XCompareAuthorsResponse, type XFollower, type XFollowersResponse, type XFollowingsResponse, type XMentionsResponse, type XSearchResponse, type XSearchSource, type XTrendingResponse, type XTweet, type XTweetLookupResponse, type XTweetRepliesResponse, type XTweetThreadResponse, type XTweetsResponse, type XUser, type XUserInfoResponse, type XUserLookupResponse, type XVerifiedFollowersResponse, clearCache, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, formatFundingMessageCompact, formatNeedsFundingMessage, formatWalletCreatedMessage, getCached, getCachedByRequest, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, loadSolanaWallet, loadWallet, logCost, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, testnetClient };