import { InjectionToken } from '@angular/core' ; import { ThySelectOptionGroupComponent } from './group/option-group.component' ; import { ThyListLayout , ThyListOptionComponent } from './list-option/list-option.component' ; export interface IThyOptionParentComponent { isMultiple : boolean ; } export interface IThyOptionGroupComponent { hidden : boolean ; } export interface IThyListOptionParentComponent { multiple ? : boolean ; layout ? : ThyListLayout ; toggleOption ( option , event ? ) : void ; setActiveOption ( option , event ? ) : void ; scrollIntoView ( option ) : void ; isSelected ( option ) : boolean ; } /**
 * Injection token used to provide the parent component to options.
 */ export const THY_OPTION_PARENT_COMPONENT = new InjectionToken < IThyOptionParentComponent > ( 'THY_OPTION_PARENT_COMPONENT' ) ; /**
 * Injection token used to provide the parent component to options.
 */ export const THY_OPTION_GROUP_COMPONENT = new InjectionToken < ThySelectOptionGroupComponent > ( 'THY_OPTION_GROUP_COMPONENT' ) ; /**
 * Injection token used to provide the parent component to options.
 */ export const THY_LIST_OPTION_PARENT_COMPONENT = new InjectionToken < IThyListOptionParentComponent > ( 'THY_LIST_OPTION_PARENT_COMPONENT' ) ;