import type { AuthSession, MeResponse, RegisterAgentInput, RegisterAgentResponse } from "./auth/types.js"; import { HttpClient } from "./lib/http.js"; import type { TyiKeypair } from "./lib/tychi.js"; import type { ProviderRef } from "./run/types.js"; import { SessionClient } from "./session/session.js"; import type { StartSessionResponse } from "./session/types.js"; import type { EvmBindSigner } from "./wallet/types.js"; import { broadcastSignedTx } from "./tx/broadcast.js"; import type { PendingTx } from "./tx/types.js"; import type { OnboardAgentInput, OnboardAgentResult } from "./onboarding/types.js"; import type { RegisterErc8004OnboardInput, RegisterErc8004OnboardResult } from "./onboarding/types.js"; import type { PendingX402 } from "./x402/types.js"; import { fetchWithX402Payment } from "./x402/pay.js"; export type TyiClientOptions = { baseUrl: string; keypair: TyiKeypair; jwt?: string; timeoutMs?: number; }; export type ListedAgentTransaction = { chain_id: number; tx_hash: string; tx_type: string; status: string; metadata: Record; created_at: string; }; export type ListTransactionsResponse = { transactions: ListedAgentTransaction[]; }; export type PublicErc8004ServiceEntry = { name: string; endpoint: string; version?: string; mcpTools?: string[]; }; export type PublicErc8004RegistrationLink = { agentId: number; agentRegistry: string; }; export type PublicErc8004Manifest = { type: string; name: string; description?: string; image?: string; services: PublicErc8004ServiceEntry[]; registrations?: PublicErc8004RegistrationLink[]; supportedTrust: string[]; active: true; x402Support: boolean; }; export declare class TyiClient { private readonly opts; readonly http: HttpClient; private authSession?; constructor(opts: TyiClientOptions); get auth(): { register: (input?: RegisterAgentInput) => Promise; login: () => Promise; me: () => Promise; session: () => AuthSession | undefined; }; get x402(): { sign: (pending: PendingX402, password: string) => Promise; fetch: typeof fetchWithX402Payment; signFetchAndResume: (pending: PendingX402, runId: string, provider: ProviderRef, password: string) => Promise; }; session(sessionId: string, provider: ProviderRef): SessionClient; get tx(): { sign: (pending: PendingTx, password: string) => Promise; broadcast: (input: Parameters[1]) => Promise; signAndBroadcast: (pending: PendingTx, password: string) => Promise; signBroadcastAndResume: (pending: PendingTx, runId: string, provider: ProviderRef, password: string) => Promise; }; listProviders(): Promise; onboard(input: OnboardAgentInput): Promise; startSession(): Promise; get wallets(): { exists: () => boolean; summary: () => import("./index.js").WalletSummary | null; create: (password: string, label?: string) => import("./index.js").CreateEvmWalletResult; importPrivateKey: (password: string, privateKey: string, label?: string) => import("./index.js").ImportEvmPrivateKeyResult; importMnemonic: (password: string, mnemonic: string, label?: string) => import("./index.js").ImportEvmMnemonicResult; bind: (chainId: number, signer: EvmBindSigner) => Promise; bindLocal: (chainId: number, password: string) => Promise; }; health(): Promise<{ ok: boolean; }>; listTools(): Promise; listTransactions(limit?: number): Promise; getPublicErc8004Manifest(agentId: string): Promise; listCatalog(): Promise; registerErc8004(input: RegisterErc8004OnboardInput): Promise; } export declare function createTyiClient(opts: TyiClientOptions): TyiClient; //# sourceMappingURL=client.d.ts.map