import type { GlobalProps, GlobalState } from '../../shared/model.js'; import type { DBLinkProps } from '../link/model.js'; import type { DBTableDataCellProps } from '../table-data-cell/model.js'; import type { DBTableHeaderCellProps } from '../table-header-cell/model.js'; export declare const DBTableRowSubHeaderEmphasisList: readonly ["none", "weak", "strong"]; export type DBTableRowSubHeaderEmphasisType = (typeof DBTableRowSubHeaderEmphasisList)[number]; export type DBTableRowCell = (DBTableHeaderCellProps | DBTableDataCellProps) & { headerCell?: boolean; content?: any; link?: DBLinkProps; }; export type DBTableRowDefaultProps = { /** * All cells of the row */ cells?: DBTableRowCell[]; /** * Change styling of row only if it is inside thead */ subHeaderEmphasis?: DBTableRowSubHeaderEmphasisType; /** * If true marks the row as interactive, which checks for child with data-table-row-trigger="true" */ interactive?: boolean | string; }; export type DBTableRowProps = DBTableRowDefaultProps & GlobalProps; export type DBTableRowDefaultState = { getHeaderCell: (cell: DBTableRowCell) => DBTableHeaderCellProps | undefined; }; export type DBTableRowState = DBTableRowDefaultState & GlobalState;