import { Component } from "../../util/Component"; import { View } from "../../data/View"; import { AccessorChain } from "../../data/createAccessorModelProxy"; import { Prop } from "../Prop"; export interface SelectionOptions { toggle?: boolean; add?: boolean; } export interface SelectionConfig { /** Binding path for selection state. */ bind?: string | AccessorChain; /** Record binding. */ record?: Prop; /** Index binding. */ index?: Prop; toggle?: boolean; /** Set to `true` to allow multiple selection. */ multiple?: boolean; } export declare class Selection extends Component { bind?: string; record?: any; index?: any; toggle: boolean; isDummy: boolean; multiple: boolean; constructor(config?: SelectionConfig); isSelected(store: View, record: any, index: any): boolean; getIsSelectedDelegate(store: View): (record: any, index: any) => boolean; select(store: View, record: any, index: any, options?: SelectionOptions): any; selectMultiple(store: View, records: any[], indexes: any[], options?: SelectionOptions): any; declareData(...args: any[]): any; configureWidget(widget: any): any; selectInstance(instance: any, options?: SelectionOptions): any; isInstanceSelected(instance: any): boolean; } export declare class SimpleSelection extends Selection { isSelected(store: View, record: any, index: any): boolean; getIsSelectedDelegate(store: View): (record: any, index: any) => boolean; selectMultiple(store: View, records: any[], index: any[]): void; } //# sourceMappingURL=Selection.d.ts.map