import { useCache } from '../hooks/use-cache'; import { BACKWARD, FORWARD } from '../defaults'; import type { Ref, UnwrapRef } from 'vue'; import type { Alignment, GridConstructorProps, GridScrollOptions } from '../types'; import type { VirtualizedGridProps } from '../props'; declare const createGrid: ({ name, clearCache, getColumnPosition, getColumnStartIndexForOffset, getColumnStopIndexForStartIndex, getEstimatedTotalHeight, getEstimatedTotalWidth, getColumnOffset, getRowOffset, getRowPosition, getRowStartIndexForOffset, getRowStopIndexForStartIndex, initCache, injectToInstance, validateProps, }: GridConstructorProps) => any; export default createGrid; type Dir = typeof FORWARD | typeof BACKWARD; export type GridInstance = InstanceType> & UnwrapRef<{ windowRef: Ref; innerRef: Ref; getItemStyleCache: ReturnType; scrollTo: (scrollOptions: GridScrollOptions) => void; scrollToItem: (rowIndex: number, columnIndex: number, alignment: Alignment) => void; states: Ref<{ isScrolling: boolean; scrollLeft: number; scrollTop: number; updateRequested: boolean; xAxisScrollDir: Dir; yAxisScrollDir: Dir; }>; }>;