import Relay from "@relaymessenger/sdk"; import { type AgentDependencies } from "./agents.js"; import { type TerminalSessionIO, type TerminalSessionOptions, type TerminalSessionResult, type TerminalRuntimeState } from "./terminal-session.js"; export interface AgentSessionInput { profile: string; handle?: string; apiURL?: string; shareURL?: string; runtime?: TerminalRuntimeState; } export interface AgentSessionDependencies { agents: Pick; fetch?: typeof globalThis.fetch; session?: (options: TerminalSessionOptions, io?: TerminalSessionIO) => Promise; io?: TerminalSessionIO; client?: (token: string, origin: string) => Pick; } /** A new agent uses the share link Relay returned. For an older imported profile, * only the Relay addresses we know can be turned into a public link. */ export declare function savedAgentShareURL(origin: string, handle: string): string; /** Uses the saved profile itself, never an unrelated token or address from the environment. */ export declare function openSavedAgentSession(input: AgentSessionInput, dependencies: AgentSessionDependencies): Promise; //# sourceMappingURL=agent-session.d.ts.map