import type { AgentConfig } from "@polpo-ai/sdk"; export interface UseAgentReturn { agent: AgentConfig | null; isLoading: boolean; error: Error | null; refetch: () => Promise; } /** * Fetch a single agent by name from the `/agents/:name` endpoint. * * Pass `undefined` or `null` when the name is not yet known (e.g. a session * without an associated agent, or data still loading) and the hook will * no-op — no HTTP request, no spurious 404s. Previously consumers had * to invent sentinel strings like `"__none__"` to avoid the call; that * pattern is no longer necessary. */ export declare function useAgent(name: string | undefined | null): UseAgentReturn; //# sourceMappingURL=use-agent.d.ts.map