import { T_fn, T_obj, T_opt, T_sel } from "./ax";
import { T_popup } from "./popup";
import { T_retrieval } from "./retrieval";
type T_autocomplete_editor = {
    enable?: boolean,
    addable?: boolean,
    deletable?: boolean,
    selector?: T_sel,
    placeholder?: string,
}
type T_autocomplete_empty = {
    enable?: boolean,
    content?:string,
}
export type T_autocomplete_item = {
    label?:string,
    theme?:''|'prim'|'succ'|'error'|'warn'|'issue'|'info'|'text'|'brief'|'ignore',
    href?:string,
    target?:string,
    rel?:string,
    wrapEl?:T_el,
    removeEl?:T_el,
    labelEl?:T_el,
    selected?:boolean,
    disabled?:boolean,
}
export interface T_autocomplete<B=1> extends T_opt {
    fill?:string,
    content?: string|string[]|T_obj[],
    contType?: 'html'|'async'|'list'|'text'|'',
    contData?: T_obj,
    ajax?:T_obj,
    tplStr?: string,
    tplEng?:any,
    popup?:T_popup,
    retrieval?:T_retrieval,
    b4Fill?:T_fn,
    onShow?:T_fn,
    onHide?:T_fn,
    onClear?:T_fn,
    onReset2Show?:T_fn,
    onUpdateCont?:T_fn,
}
