import CellRenderer from './CellRenderer'; import { type VisibleIndex } from './GridMetrics'; import { type GridRenderState } from './GridRendererTypes'; import { type TokenBox, type Token } from './GridUtils'; import type TokenBoxCellRenderer from './TokenBoxCellRenderer'; declare class TextCellRenderer extends CellRenderer implements TokenBoxCellRenderer { drawCellContent(context: CanvasRenderingContext2D, state: GridRenderState, column: VisibleIndex, row: VisibleIndex): void; /** * Gets the token boxes that are visible in the cell * @param column The visible column * @param row The visible row * @param state The GridRenderState * @returns An array of TokenBox of visible tokens or empty array with coordinates relative to gridX and gridY */ getTokenBoxesForVisibleCell(column: VisibleIndex, row: VisibleIndex, state: GridRenderState): TokenBox[]; configureContext(context: CanvasRenderingContext2D, state: GridRenderState): void; /** * Returns an array of token boxes with the coordinates relative to the top left corner of the text */ getCachedTokenBoxesForVisibleCell: ((truncatedText: string, tokens: Token[], _font: string, _baseline: CanvasTextBaseline, textHeight: number, context: CanvasRenderingContext2D) => TokenBox[]) & import("@types/memoizee").Memoized<(truncatedText: string, tokens: Token[], _font: string, _baseline: CanvasTextBaseline, textHeight: number, context: CanvasRenderingContext2D) => TokenBox[]>; } export default TextCellRenderer; //# sourceMappingURL=TextCellRenderer.d.ts.map