UNPKG

@antv/s2-react

Version:
6 lines (5 loc) 505 B
import { S2Event, SpreadSheet, type TargetCellInfo } from '@antv/s2'; import type { SheetComponentProps } from '../components'; export declare const useCellEvent: (eventName: S2Event, handler: ((data: TargetCellInfo) => void) | undefined, s2: SpreadSheet) => void; export declare const useS2Event: (eventName: S2Event, handler: ((...args: any[]) => void) | undefined, s2: SpreadSheet, emitBeforeOff?: boolean) => void; export declare function useEvents(props: SheetComponentProps, s2: SpreadSheet): void;