import * as React from 'react'; import { BoxProps } from '@mantine/core'; import { DatavisynLineUpBuilder } from './overrides/DatavisynLineUpBuilder'; import { DatavisynTaggle } from './overrides/DatavisynTaggle'; import { registerSMILESColumn } from './smiles/utils'; import '../scss/vendors/_lineup.scss'; export declare const defaultBuilder: ({ data, smilesOptions, }: { data: Record[]; smilesOptions?: Parameters[1]; }) => DatavisynLineUpBuilder; /** * Lineup information passed to user via onBuiltLineUp. This is useful for adding custom/score columns to the ranking. * Can store the createScoreColumn function in a ref and call it later to add a score column to the ranking. * * Such as in the following example: * * const createScoreColumnFunc = React.useRef<(func: (data: { data: any }) => Promise) => Promise>(); * const onBuiltLineUp = React.useCallback((props: IBuiltVisynRanking) => { * createScoreColumnFunc.current = props.createScoreColumn; * }, []); * * React.useEffect(() => { * if (createScoreColumnFunc.current) { * createScoreColumnFunc.current(async ({ data }) => { * const desc = await yourFunctionToGetDescription(); * return desc; * }); * } * }, [createScoreColumnFunc, yourFunctionToGetDescription]); * */ export interface IBuiltVisynRanking { lineup: DatavisynTaggle; } export declare function EagerVisynRanking>({ data, getBuilder, setSelection, selection, onBuiltLineUp, ...innerProps }: { data: T[]; getBuilder?: (props: { data: Record[]; }) => DatavisynLineUpBuilder; setSelection: (selection: T[]) => void; selection: T[]; onBuiltLineUp?: (props: IBuiltVisynRanking) => void; } & BoxProps): React.JSX.Element; //# sourceMappingURL=EagerVisynRanking.d.ts.map