
import { T_el, T_opt } from './ax';
import { T_drawer } from './drawer';
type T_search_row = {
    enable?: boolean,
    headWidth?: string,
    bodyWidth?: string,
    marginLeft?: string,
    marginRight?: string,
    align?: 'left' | 'center' | 'right',
}
type T_search_status = {
    enable?: boolean,
    target?: 'list'|'edior'|T_sel,
}
interface T_search_drawer extends T_drawer {
    enable?: boolean,
}
export interface T_search<B = 1> extends T_opt {
    keys?: string|string[],
    props?: string|string[],
    fill?:string,
    fuzzy?:boolean,
    ignore?:string,
    limit?:number,
    reorder?:boolean,
    hyphen?: string,

    content?: any,
    contType?: 'html'|'async'|'',
    contData?: T_obj,
    ajax?:T_obj,
    tplStr?: string,
    tplEng?:any,

    editor?: T_sel,
    status?: B extends 1 ? (T_search_status | boolean) : T_search_status,
    classes?: string | string[]
    display?: 'popup' | 'drawer'|'',
    
    bubble?: T_obj,
    b4Select?: T_fn,
    b4Fill?: T_fn,
    onSelect?: T_fn,
    onSearch?: T_fn,
    onUpdateCont?: T_fn,
}
