import type { SessionAdminAccess } from "@opengeni/sdk"; import { ADMIN_ACCESS_DURATIONS, endsText, type AdminAccessDuration } from "../../../session-admin-access-model.js"; export { ADMIN_ACCESS_DURATIONS, endsText, type AdminAccessDuration }; export type SessionAdminAccessControl = { state: SessionAdminAccess; busy: boolean; grant: (duration: AdminAccessDuration) => Promise; revoke: () => void; }; export declare function useSessionAdminAccess(session: { workspaceId: string; id: string; }): SessionAdminAccessControl | null; /** The small shield beside the title while the session has full access. */ export declare function SessionAdminAccessIndicator({ control, onChangeTimeLimit, }: { control: SessionAdminAccessControl; /** Opens the time limit dialog; shown to the person who can give access. */ onChangeTimeLimit?: (() => void) | undefined; }): import("react").JSX.Element | null; /** * What full access is and how to change it, as menu items: the shield's own * menu, or the header's "…" menu when the shield has no room beside the title. * `runAfterClose` runs an action once the menu has closed. */ export declare function SessionAdminAccessMenuItems({ control, onChangeTimeLimit, runAfterClose, }: { control: SessionAdminAccessControl; onChangeTimeLimit?: (() => void) | undefined; runAfterClose: (action: () => void) => void; }): import("react").JSX.Element | null; /** Gives this session full access, or changes how long it lasts while it is on. */ export declare function GrantSessionAdminAccessDialog({ control, open, onOpenChange, }: { control: SessionAdminAccessControl; open: boolean; onOpenChange: (open: boolean) => void; }): import("react").JSX.Element;