import type { RailAggregateStatus } from "../../lib/sessions-group.js"; import type { SessionSiteOrigin } from "../../lib/session-site-origin.js"; import type { Channel } from "../../types.js"; /** * Pin and archive for Site rows, in this person's own sidebar. Archive only * hides the row; the Site stays published. Absent where the client cannot * change sidebar state, and then the row offers no actions. Move files the * row in another project (null is Default), like a chat; absent where the * client predates it. */ export type SiteRowActions = { pin: (origin: SessionSiteOrigin, pinned: boolean) => void; archive: (origin: SessionSiteOrigin) => void; move?: ((origin: SessionSiteOrigin, fromChannelId: string | null, channelId: string | null) => void) | undefined; }; export declare const SiteRowActionsContext: import("react").Context; /** Drag payload of a Site row: `{ siteId, title, channelId }` as JSON. */ export declare const SITE_DRAG_TYPE = "application/x-opengeni-site"; export type SiteRowDragPayload = { siteId: string; title: string; channelId: string | null; }; export declare function readSiteRowDragPayload(value: string): SiteRowDragPayload | null; /** A Site's row in the rail: open the Site view, or disclose its conversations. */ export declare function SiteSessionGroupHeading({ origin, workspaceId, expanded, onToggle, summary, count, relativeTime, depth, active, pinned, channelId, channels, }: { origin: SessionSiteOrigin; workspaceId: string; expanded: boolean; onToggle: () => void; summary: RailAggregateStatus; /** Conversations behind the row, loaded or not. */ count: number; relativeTime?: string | undefined; depth?: number | undefined; active?: boolean | undefined; /** This person pinned the Site in their sidebar. */ pinned?: boolean | undefined; /** The project this row is in (null is Default); undefined when it stands for every project. */ channelId?: string | null | undefined; /** Projects it can move to, as offered for chats. */ channels?: readonly Channel[] | undefined; }): import("react").JSX.Element;