import * as polytype from 'polytype';
import * as _angular_core from '@angular/core';
import { AXEvent, MXInputBaseValueComponent, MXLookComponent, AXHtmlEvent, AXFocusEvent } from '@acorex/cdk/common';
import { AXListNavigationDirective, AXListNavigationItemDirective } from '@acorex/cdk/list-navigation';
import { AXSearchBoxComponent } from '@acorex/components/search-box';

type CommandItem = {
    id: string | number;
    text: string;
    icon?: string;
    href?: string;
    children?: CommandItem[];
    index?: number;
    data?: any;
};
type CommandMenuItem = {
    pinned?: {
        title: string;
        items: CommandItem[];
    };
    items: CommandItem[];
};
declare class AXCommandComponentEvent extends AXEvent {
    data: CommandItem;
}

declare const AXCommandComponent_base: polytype.Polytype.ClusteredConstructor<[{
    new (): MXInputBaseValueComponent<CommandMenuItem>;
    ɵfac: _angular_core.ɵɵFactoryDeclaration<MXInputBaseValueComponent<any>, never>;
    ɵprov: _angular_core.ɵɵInjectableDeclaration<MXInputBaseValueComponent<any>>;
}, typeof MXLookComponent]>;
declare class AXCommandComponent extends AXCommandComponent_base {
    protected searchValue: _angular_core.WritableSignal<string>;
    protected searchBox: _angular_core.Signal<AXSearchBoxComponent>;
    readonly onSubmit: _angular_core.OutputEmitterRef<AXCommandComponentEvent>;
    readonly onEscape: _angular_core.OutputEmitterRef<AXHtmlEvent<KeyboardEvent>>;
    readonly onSearchBoxFocus: _angular_core.OutputEmitterRef<AXHtmlEvent<FocusEvent>>;
    readonly onSearchBoxBlur: _angular_core.OutputEmitterRef<AXHtmlEvent<FocusEvent>>;
    protected listNavigation: _angular_core.Signal<AXListNavigationDirective>;
    private listNav;
    protected displayItems: _angular_core.Signal<CommandItem[]>;
    protected focusHandler(e: AXFocusEvent): void;
    protected blurHandler(e: AXFocusEvent): void;
    private filterRecursive;
    protected onItemClick(item: CommandItem): void;
    protected keyPress(e: AXHtmlEvent<KeyboardEvent>, item: CommandItem): void;
    protected searchEscapeHandler(e: AXHtmlEvent<KeyboardEvent>): void;
    protected closeHandler(e: AXHtmlEvent<KeyboardEvent>): void;
    protected activeHandler(l: AXListNavigationDirective, i: AXListNavigationItemDirective): void;
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCommandComponent, never>;
    static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXCommandComponent, "ax-command", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "onSubmit": "onSubmit"; "onEscape": "onEscape"; "onSearchBoxFocus": "onSearchBoxFocus"; "onSearchBoxBlur": "onSearchBoxBlur"; }, never, never, true, never>;
}

declare class AXCommandModule {
    static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXCommandModule, never>;
    static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXCommandModule, never, [typeof AXCommandComponent], [typeof AXCommandComponent]>;
    static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXCommandModule>;
}

export { AXCommandComponent, AXCommandComponentEvent, AXCommandModule };
export type { CommandItem, CommandMenuItem };
