import { type Row as RowType } from '@tanstack/table-core'; import { Column } from '@uwdata/flechette'; import { colorByColors } from '../../ProfileFlameGraph/FlameGraphArrow/FlameGraphNodes'; export interface DataRow { id: number; moreActions?: string; colorProperty: { color: string; mappingFile: string; }; name: string; flat: bigint; flatDiff: bigint; cumulative: bigint; cumulativeDiff: bigint; mappingFile: string; functionSystemName: string; functionFileName: string; callers?: DataRow[]; callees?: DataRow[]; subRows?: Row[]; isTopSubRow?: boolean; isBottomSubRow?: boolean; } export interface DummyRow { size: number; message?: string; isTopSubRow?: boolean; isBottomSubRow?: boolean; } export type Row = DataRow | DummyRow; export declare const addPlusSign: (num: string) => string; export declare const getRowColor: (colorByColors: colorByColors, mappingFileColumn: Column | null, row: number, functionFileNameColumn: Column | null, colorBy: string) => string; export declare const RowName: (mappingFileColumn: Column | null, locationAddressColumn: Column | null, functionNameColumn: Column | null, row: number) => string; export declare const getRowsCount: (rows: Array>) => number; export declare function getScrollTargetIndex(rows: Array>, parentRow: RowType, newRow: RowType): number; export declare function isSubRow(row: Row): boolean; export declare function isLastSubRow(row: RowType, rows: Array>): boolean; export declare function isFirstSubRow(row: RowType, rows: Array>): boolean; export type ColumnName = 'flat' | 'flatPercentage' | 'flatDiff' | 'flatDiffPercentage' | 'cumulative' | 'cumulativePercentage' | 'cumulativeDiff' | 'cumulativeDiffPercentage' | 'name' | 'functionSystemName' | 'functionFileName' | 'mappingFile'; export declare const rowBgClassNames: (isExpanded: boolean, isSubRow: boolean) => Record; export declare const ROW_HEIGHT = 29; export declare const sizeToHeightStyle: (size: number) => Record; export declare const sizeToWidthStyle: (size: number) => Record; export declare const sizeToBottomStyle: (size: number) => Record; export declare const getCallerRows: (callers: DataRow[]) => Row[]; export declare const getCalleeRows: (callees: DataRow[]) => Row[]; export declare const getPercentageString: (value: bigint | number, total: bigint | number) => string; export declare const getRatioString: (value: bigint | number, total: bigint, filtered: bigint) => string; export declare const possibleColumns: string[]; export declare const percentageString: (value: bigint | number, total: bigint | number) => string; export declare const ratioString: (value: bigint | number, total: bigint, filtered: bigint) => string; //# sourceMappingURL=functions.d.ts.map