1 | import type { DrawHorizontalLine, DrawVerticalLine, SpanningCellConfig } from './types/api';
|
2 | import type { CellCoordinates, ColumnConfig, ResolvedRangeConfig, Row } from './types/internal';
|
3 | export declare type SpanningCellManager = {
|
4 | getContainingRange: (cell: CellCoordinates, options?: {
|
5 | mapped: true;
|
6 | }) => ResolvedRangeConfig | undefined;
|
7 | inSameRange: (cell1: CellCoordinates, cell2: CellCoordinates) => boolean;
|
8 | rowHeights: number[];
|
9 | setRowHeights: (rowHeights: number[]) => void;
|
10 | };
|
11 | export declare type SpanningCellParameters = {
|
12 | spanningCellConfigs: SpanningCellConfig[];
|
13 | rows: Row[];
|
14 | columnsConfig: ColumnConfig[];
|
15 | drawVerticalLine: DrawVerticalLine;
|
16 | drawHorizontalLine: DrawHorizontalLine;
|
17 | };
|
18 | export declare type SpanningCellContext = SpanningCellParameters & {
|
19 | rowHeights: number[];
|
20 | };
|
21 | export declare const createSpanningCellManager: (parameters: SpanningCellParameters) => SpanningCellManager;
|