import { T_el, T_opt } from './ax';
import { T_drawer } from './drawer';
type T_retrieval_row = {
    enable?: boolean,
    headWidth?: string,
    bodyWidth?: string,
    marginLeft?: string,
    marginRight?: string,
    align?: 'left' | 'center' | 'right',
}
type T_retrieval_status = {
    enable?: boolean,
    placement?: 'list-top'|'list-btm'|'editor-top'|'edior-btm'|T_sel,
}
type T_retrieval_highlight = {
    enable?: boolean,
    props?: string|string[],
    classes?:string|string[],
}
interface T_retrieval_drawer extends T_drawer {
    enable?: boolean,
}
export interface T_retrieval<B = 1> extends T_opt {
    keys?: string|string[],
    props?: string|string[],
    fill?:string,
    fuzzy?:boolean,
    ignore?:string,
    limit?:number,
    order?:''|null|{}|T_obj|T_obj[],
    hyphen?: string,
    nullHandle?:'clear'|'reset',
    highlight?:B extends 1 ? (T_retrieval_highlight | boolean) : T_retrieval_highlight,
    content?: string|string[]|T_obj[],
    contType?: 'html'|'async'|'list'|'text'|'',
    contData?: T_obj,
    ajax?:T_obj,
    tplStr?: string,
    tplEng?:any,
    target?: T_sel,
    editor?: T_sel,
    trigger?:'change'|'input'|'blur',
    delay?:number,
    status?: B extends 1 ? (T_retrieval_status | boolean) : T_retrieval_status,
    classes?: string | string[]
    display?: 'popup' | 'drawer'|'',
    bubble?: T_obj,
    list?:T_obj,
    b4Select?: T_fn,
    b4Fill?: T_fn,
    onSelect?: T_fn,
    onSearch?: T_fn,
    onUpdateCont?: T_fn,
    onRequest?:T_fn;
}
