import { type MouseEvent as ReactMouseEvent, type ReactNode } from 'react'; /** Marks a header cell of a list whose column headers are off; see `listTableProps`. */ export declare const HEADERS_OFF = "list-headers-off"; /** table-auto; the name column has a min-width floor so it can't be crushed. * The header row sticks as the rows scroll, so the list's scrolling box * (`ListPage`'s body) scrolls it sideways too. */ export declare const listTableProps: { readonly borderless: true; readonly stickyHeader: true; readonly panel: false; readonly rounded: false; readonly theadClassName: 'bg-(--theme-app-bg) text-(--theme-muted-text-color) has-[.list-headers-off]:collapse'; readonly tbodyClassName: 'divide-y border-b border-(--theme-border) divide-(--theme-border)'; readonly className: 'table-auto w-full [&_td:first-child]:pl-4 [&_th:first-child]:pl-4 [&_td:last-child]:pr-4 [&_th:last-child]:pr-4'; }; /** Widths come only from the header row, so a windowed body cannot shift the * columns as different content scrolls into view. The windowed table scrolls * in its own box, so its header doesn't stick. */ export declare const listTableFixedProps: { readonly borderless: true; readonly panel: false; readonly rounded: false; readonly theadClassName: 'bg-(--theme-app-bg) text-(--theme-muted-text-color) has-[.list-headers-off]:collapse'; readonly tbodyClassName: 'divide-y border-b border-(--theme-border) divide-(--theme-border)'; readonly stickyHeader: false; readonly className: string; }; /** True inside a `ListRow` whose name is the row's link: the row opens it, * as no selection claims plain clicks. */ export declare const StretchRowLinkContext: import("react").Context; /** Marks a row's own link, the one the row opens, and draws its focus ring * around the row (the row's `` is its containing block). The link takes * only the clicks on itself: covering the row, it would take a press dragged * over the row's text as dragging the link, and letting go as a click on it, * so the text couldn't be selected. The row opens on the rest of its clicks * (see `ListRow`). A `NameCell` with an `href` does this itself; a row whose * link is elsewhere, such as a run's number before its workflow's name, gives * its own link this class and `data-row-link`. */ export declare const STRETCHED_LINK = "after:pointer-events-none after:absolute after:inset-0 after:content-[''] focus-visible:outline-none focus-visible:after:outline-2 focus-visible:after:-outline-offset-2 focus-visible:after:outline-(--theme-focus)"; /** The row a `STRETCHED_LINK` draws its focus ring around. */ export declare const STRETCHED_LINK_ROW = "relative"; /** True for a press on the row itself: not on one of its own controls, and not in what it opened * in a portal, such as a drawer, which passes its events up to the row through React though it * isn't in the row. */ export declare function pressesRow(e: ReactMouseEvent): boolean; /** True when a click on `row` ends selecting text in it, such as a name or an ID to copy: a press * dragged over text and let go is a click, but it asks for the text, not for the row to open. */ export declare function endsTextSelection(row: Element): boolean; /** Opens a row's link in a new tab for a click that asks for one, as the link itself would: a * middle click, or one with Cmd, Ctrl or Shift held. */ export declare function openRowInNewTab(e: ReactMouseEvent, href: string): void; /** A row's mouse handlers beside its click handler: a middle click anywhere on the row opens * `href` in a new tab, as on its link. */ export declare function rowPressProps(href: string | null | undefined, clickable?: boolean): { onMouseDown: (e: ReactMouseEvent) => void; onAuxClick: (e: ReactMouseEvent) => void; }; export declare function NameCell({ icon, iconTile, name, subtitle, description, descriptionTone, href, badge, title, children, }: { icon: ReactNode; /** Sets the icon in a small bordered tile, so rows whose icons differ in * weight, such as kinds of token or runner, still line up. The 28px tile * sits beside a name and its subtitle; a row with no subtitle keeps its * icon bare, centered where the tile would be, so a one-line row stays * as short as its text and its name still lines up with tiled rows. */ iconTile?: boolean | undefined; /** The name, or the host's own element for it, such as a link that opens the row's item in * a new tab: it is cut off with an ellipsis where it is wider than its column. */ name: ReactNode; /** A second line under the name, cut off with an ellipsis. One that holds links of its own * needs `href={null}`, as a link can't hold another. */ subtitle?: ReactNode; /** A longer note under the subtitle, such as why a session failed. It wraps inside the name's * column for two lines at most, then ends in an ellipsis and shows whole in a tooltip, so it * never runs past the row on a phone. It sits outside the name's link. */ description?: string | undefined; /** `error` for a note that says what went wrong. */ descriptionTone?: 'muted' | 'error' | undefined; /** The name's link. Inside a `ListRow` with an `href`, it is the row's * link, which a click on the rest of the row opens too, so give both the * same URL. */ href: string | null; badge?: ReactNode; title?: string | undefined; /** More under the name, outside its link: where a stacked column shows on a * narrow container (see `ColumnDef.stack`). */ children?: ReactNode; }): import("react").JSX.Element; /** A row's column text: muted 13px, or monospace for an ID, a path or a * hash. The style sits on the text rather than the cell, so it carries over * when a narrow list stacks the column under the name. Text wider than its * column is cut off with an ellipsis, and shows whole in a tooltip. */ export declare function ListCellText({ mono, className, children, }: { mono?: boolean | undefined; className?: string | undefined; children: ReactNode; }): import("react").JSX.Element; /** Says a list couldn't load. It never shows the error's own text, which is * the server's words, in its language and not written for the reader. */ export declare function ListError({ noun, message, }: { /** What failed. It is not shown: pass `message` to say what went wrong. */ error?: unknown; /** What failed to load, as the heading names it: "Couldn't load clusters". */ noun?: string | undefined; /** What went wrong, in the reader's words, such as the host's own text for the error. * Defaults to a generic line from the strings. */ message?: ReactNode; }): import("react").JSX.Element; export declare function ListSkeleton({ rows }: { rows?: number; }): import("react").JSX.Element; /** Prevents the name column from being crushed under table-auto layout during horizontal * overflow. In a list under 400px wide, the floor is half the list instead. */ export declare const NAME_MIN_WIDTH_PX = 200; /** Width the trailing actions column reserves for `count` always-visible * buttons plus the hover `⋯` trigger. */ /** The lane of a row whose only action is a `⋯` shown on hover. With a mouse * it is just wide enough for the `⋯` and the edge's 16px, so the last column * ends where the lane begins and long text there is cut off before the * button rather than running under it. On a touch screen, where the `⋯` * always shows, the lane keeps its full width. */ export declare const FLOATING_ACTIONS_LANE = "pointer-fine:w-10! pointer-fine:min-w-10! pointer-fine:pl-0! pointer-fine:pr-1!"; export declare function actionsColumnWidth(count: number): number; /** Shared leading selection checkbox for multi-select rows: stops the row-click * and suppresses shift-click text selection. Wrap in for `leading`. */ export declare function RowSelectCheckbox({ checked, label, onToggle, }: { checked: boolean; label: string; /** Gets the press, a click or a key, so a host can extend a range on Shift. */ onToggle: (event: Event) => void; }): import("react").JSX.Element; /** The selection column's header: a checkbox that ticks every row, mixed while * only some are. `onToggle` selects them all, or clears them once all are. */ export declare function ListSelectAllHeader({ selected, total, onToggle, }: { /** How many rows are selected. */ selected: number; /** How many rows there are to select. */ total: number; onToggle: () => void; }): import("react").JSX.Element; export declare namespace ListSelectAllHeader { var isTableHeader: boolean; } /** Sizes to fit pinned buttons + ⋯; below ~44rem only ⋯ remains. Pass a view's * chrome (structurally: showActions + actionsWidth) or actionCount. */ export declare function ListActionsHeader({ view, actionCount, className, }: { view?: { showActions: boolean; actionsWidth: number; alwaysShowActions?: boolean; lastColumnLocked?: boolean | undefined; reservesActionLane?: boolean | undefined; }; actionCount?: number; className?: string; }): import("react").JSX.Element | null; export declare namespace ListActionsHeader { var isTableHeader: boolean; }