import { FormControl } from '@angular/forms'; import { TsOption } from '@terminus/ui/option'; import { TsSelectionListChange, TsSelectionListFormatter } from '@terminus/ui/selection-list'; interface State extends TsOption { name: string; population: string; disabled?: boolean; } export declare const STATES: State[]; interface GroupedStates { name: string; children: State[]; disabled?: boolean; } export declare class Basic { myCtrl: FormControl; states: State[]; showProgress: boolean; allowMultiple: boolean; keepOpen: boolean; disabled: boolean | undefined; change: (v: any) => void; changeOptionsLength(): void; } export declare class Multiple { myCtrl: FormControl; secondCtrl: FormControl; states: State[]; showProgress: boolean; allowMultiple: boolean; keepOpen: boolean; disabled: boolean | undefined; change: (v: any) => void; changeOptionsLength(): void; } export declare class Required { myCtrl: FormControl; states: State[]; } export declare class Seeded { states: State[]; myCtrl: FormControl; allowMultiple: boolean; allowDuplicates: boolean; keepOpen: boolean; formatter: TsSelectionListFormatter | undefined; duplicate: (v: any) => void; setNewStates(): void; setFormatter(): void; } export declare class ManualSeeded { states: State[]; myCtrl: FormControl; allowMultiple: boolean; allowDuplicates: boolean; keepOpen: boolean; formatter: TsSelectionListFormatter | undefined; duplicate: (v: any) => void; setNewStates(): void; setFormatter(): void; } export declare class SeededSingleSelect { states: State[]; myCtrl: FormControl; allowUserInput: boolean; formatter(state: State): string; } export declare class PassingInObjectValue { states: State[]; myCtrl: FormControl; allowMultiple: boolean; allowDuplicates: boolean; keepOpen: boolean; duplicate: (v: any) => void; } export declare class SeededNgModel { myModel: State[]; states: State[]; } export declare class SeededNgModelError { myModel: { id: string; }; states: State[]; } export declare class SeededNonArray { states: State[]; meow: FormControl; } export declare class AllowMultipleNoReopen { myCtrl: FormControl; states: State[]; allowMultiple: boolean; } export declare class Disabled { myCtrl: FormControl; options: State[]; wasOpened: (v: any) => void; } export declare class SelectOptionChange { myCtrl: FormControl; options: State[]; updateOptions(): void; } export declare class CustomCompareFn { foods: ({ value: string; viewValue: string; })[]; selectedFood: { value: string; viewValue: string; }; comparator: ((f1: any, f2: any) => boolean) | null; useCompareByValue(): void; useCompareByReference(): void; useNullComparator(): void; compareByValue(f1: any, f2: any): boolean; compareByReference(f1: any, f2: any): boolean; setFoodByCopy(newValue: { value: string; viewValue: string; }): void; } export declare class DeferOptionSelectionStream { myCtrl: FormControl; items: any[]; updateOptions(): void; } export declare class Debounce { myCtrl: FormControl; options: State[]; change: (v: any) => void; } export declare class CustomDebounce { myCtrl: FormControl; options: State[]; change: (v: any) => void; } export declare class CustomCharacterCount { myCtrl: FormControl; options: State[]; customCount: number | undefined; change: (v: any) => void; } export declare class HideRequired { myCtrl: FormControl; options: State[]; hideRequired: boolean; } export declare class Hint { myCtrl: FormControl; myHint: string; options: State[]; } export declare class Id { myCtrl: FormControl; myId: string; options: State[]; } export declare class Label { myCtrl: FormControl; myLabel: string; options: State[]; } export declare class ValidateOnChange { myCtrl: FormControl; validateOnChange: boolean; options: State[]; } export declare class NullSelection { items: ({ value: string; viewValue: string; } | { value: null; viewValue: null; })[]; myCtrl: FormControl; } export declare class OptionError { myCtrl: FormControl; items: State[]; } export declare class OptionId { myCtrl: FormControl; items: State[]; change: (v: any) => void; } export declare class OptgroupIDs { myCtrl: FormControl; groups: GroupedStates[]; } export declare class OptgroupBadIDs { myCtrl: FormControl; groups: GroupedStates[]; } export declare class Formatter { myCtrl: FormControl; states: State[]; allowMultiple: boolean; myFormatter(v: State): string; } export declare class SimpleArray { myCtrl: FormControl; options: string[]; allowMultiple: boolean; } export declare class SelectionEvent { myCtrl: FormControl; options: string[]; allowMultiple: boolean; lastSelection: TsSelectionListChange | undefined; mySelection(e: TsSelectionListChange): void; } export declare class BackdropClick { myCtrl: FormControl; options: string[]; clicked: () => void; } export declare class NoValidationOrHint { myCtrl: FormControl; validationFlag: boolean; } /** * NOTE: Currently all exported Components must belong to a module. So this is our useless module to avoid the build error. */ export declare class TsSelectionListTestComponentsModule { } export {};