import { Binding, NewSignal, SignalRef, Stream } from 'vega'; import { BrushConfig, SelectionInit, SelectionInitInterval, SelectionResolution, SelectionType } from '../../selection'; import { Dict } from '../../util'; import { Model } from '../model'; import { UnitModel } from '../unit'; import { SelectionProjection, SelectionProjectionComponent } from './transforms/project'; export declare const STORE = "_store"; export declare const TUPLE = "_tuple"; export declare const MODIFY = "_modify"; export declare const SELECTION_DOMAIN = "_selection_domain_"; export declare const VL_SELECTION_RESOLVE = "vlSelectionResolve"; export interface SelectionComponent { name: string; type: T; init?: (T extends 'interval' ? SelectionInitInterval : T extends 'single' ? SelectionInit : T extends 'multi' ? SelectionInit | SelectionInit[] : never)[]; events: Stream[]; bind?: 'scales' | Binding | Dict; resolve: SelectionResolution; empty: 'all' | 'none'; mark?: BrushConfig; project?: SelectionProjectionComponent; scales?: SelectionProjection[]; toggle?: any; translate?: any; zoom?: any; nearest?: any; clear?: any; } export interface SelectionCompiler { signals: (model: UnitModel, selCmpt: SelectionComponent) => NewSignal[]; topLevelSignals?: (model: Model, selCmpt: SelectionComponent, signals: NewSignal[]) => NewSignal[]; modifyExpr: (model: UnitModel, selCmpt: SelectionComponent) => string; marks?: (model: UnitModel, selCmpt: SelectionComponent, marks: any[]) => any[]; } export declare function forEachSelection(model: Model, cb: (selCmpt: SelectionComponent, selCompiler: SelectionCompiler) => void): void; export declare function unitName(model: Model, { escape }?: { escape: boolean; }): string; export declare function requiresSelectionId(model: Model): boolean; export declare function isRawSelectionDomain(domainRaw: SignalRef): boolean; //# sourceMappingURL=index.d.ts.map