import { type OpenGeniLinkTarget } from "@opengeni/sdk"; import { type OpenGeniLinkResolver } from "../../components/open-geni-links.js"; /** Only canonical, same-origin/workspace artifact links belong in the session dock. */ export declare function sessionArtifactFromHref(href: string, origin: string, workspaceId: string): { id: string; editable: boolean; kind?: "file"; } | null; /** * In the console, agent-authored object links keep their own console routes. * `ArtifactLinkBoundary` still intercepts them for the session dock. */ export declare function consoleLinkResolver(target: OpenGeniLinkTarget): { href: string; } | null; /** * The app's resolver for object links in agent Markdown: the host's own * resolver (an `OpenGeniLinkProvider` around an embed) first, then the web * app's page for the object. In an embed that page is on the web app's * origin, not the host page's: with the dock on, the link carries the * absolute URL so the dock still intercepts it; with the dock off, it opens * that page beside the host through the embed's `openUrl`. */ export declare function useAppLinkResolver(): OpenGeniLinkResolver; /** * {@link useAppLinkResolver} inside one workspace's session: a workspace-less * `artifact:` file link or `session:` chat link belongs to that workspace, as * it does in the agent's chat replies, so links in its questions and other * session text resolve the same way. The host's resolver still sees the link * first. With `openSession`, a plain click on a chat link opens the chat here * without reloading the app, while the link keeps the chat's page as its href, * so ⌘/Ctrl-click and the context menu treat it as an ordinary page (a new * tab, or the browser from the desktop app). An embed opens it beside the host. */ export declare function useWorkspaceAppLinkResolver(workspaceId: string, openSession?: (workspaceId: string, sessionId: string) => void): OpenGeniLinkResolver;