import type { SessionSiteOrigin } from "./session-site-origin.js"; /** * The sidebar's Site actions for the Site's own page: Pin and Archive there * act exactly as on the Site's row (same optimistic row, toasts and Undo), * because the sidebar that owns those rows publishes them here while it is * mounted. Absent while there is no sidebar list (a collapsed rail, a closed * phone drawer, an embed without Site sidebar state); the page then offers * neither. */ export type SiteSidebarBridge = { workspaceId: string; /** Sites pinned in this person's sidebar. */ pinnedSiteIds: ReadonlySet; pin: (origin: SessionSiteOrigin, pinned: boolean) => void; archive: (origin: SessionSiteOrigin) => void; }; /** Publishes the sidebar's actions; returns the matching withdrawal. */ export declare function publishSiteSidebarBridge(bridge: SiteSidebarBridge): () => void; /** The sidebar's Pin and Archive for one Site, or null while there are none. */ export declare function useSiteSidebarActions(workspaceId: string, origin: SessionSiteOrigin | null): { pinned: boolean; togglePin: () => void; archive: () => void; } | null;