import type { SessionSiteOrigin } from "../../lib/session-site-origin.js"; import { DropdownMenuItem } from "../../../ui/dropdown-menu.js"; /** * What a Site's row and its page both offer besides the sidebar's Pin, * Archive and Move: copy its title or address, duplicate it (for people who * can publish), and its details (versions, sharing, archive). Wired to the * same capabilities as the Artifacts page. */ export declare function useSiteActions(workspaceId: string, origin: SessionSiteOrigin, { hasVersion, }?: { /** False for a Site with nothing published yet, which has nothing to copy. */ hasVersion?: boolean; }): { copyTitle: () => undefined; copyLink: () => undefined; duplicate: { busy: boolean; run: () => undefined; } | null; /** Site details: its Settings tab, which shows Versions to everyone. */ details: { readonly to: "/workspaces/$workspaceId/artifacts/$artifactId"; readonly params: { readonly workspaceId: string; readonly artifactId: string; }; readonly search: { readonly tab: "settings"; }; }; }; export type SiteActions = ReturnType; type MenuItem = typeof DropdownMenuItem; /** * "Open published Site", once the menu it sits in has learned the Site is on * the web: it reads the address when the menu opens, and shows nothing for a * Site that isn't published (or while it doesn't know yet). */ export declare function OpenPublishedSiteItem(props: { item: MenuItem; workspaceId: string; siteId: string; }): import("react").JSX.Element | null; export {};