///
import { Options } from './utils';
interface ListboxOptionsListSubscription {
id: string;
}
export interface ListboxOptionsListAPI {
subscribe: (data: ListboxOptionsListSubscription) => void;
closeList: () => void;
setActiveOption: (option: Exclude) => void;
data: {
hidden: boolean | undefined;
ariaLabelledBy: string | null;
ariaActiveDescendant: string | undefined;
};
}
export declare const ListboxOptionsListAPI: {
Provider: {
(props: {
value: ListboxOptionsListAPI;
children?: string | number | boolean | {} | import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
}): JSX.Element;
displayName?: string | undefined;
};
consume: () => ListboxOptionsListAPI;
};
export declare const ListboxOptionsListAPIProvider: {
(props: {
value: ListboxOptionsListAPI;
children?: string | number | boolean | {} | import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
}): JSX.Element;
displayName?: string | undefined;
};
export declare const useListboxOptionsListAPI: () => ListboxOptionsListAPI;
interface ListboxButtonSubscription {
id: string;
}
export interface ListboxButtonAPI {
subscribe: (data: ListboxButtonSubscription) => void;
openList: (activeOption: Options.First | Options.Last | Options.None) => void;
toggleList: () => void;
data: {
ariaControls: string | null;
ariaExpanded: boolean | undefined;
};
}
export declare const ListboxButtonAPI: {
Provider: {
(props: {
value: ListboxButtonAPI;
children?: string | number | boolean | {} | import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
}): JSX.Element;
displayName?: string | undefined;
};
consume: () => ListboxButtonAPI;
};
export declare const ListboxButtonAPIProvider: {
(props: {
value: ListboxButtonAPI;
children?: string | number | boolean | {} | import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
}): JSX.Element;
displayName?: string | undefined;
};
export declare const useListboxButtonAPI: () => ListboxButtonAPI;
export interface SubscribedListboxOption {
id: string;
disabled: boolean;
text: string;
}
export interface ListboxOptionAPI {
subscribe: (data: SubscribedListboxOption) => void;
selectOption: (value?: Value) => void;
unSelectOption: (value?: Value) => void;
focus: (id: string) => void;
unFocus: () => void;
closeList?: () => void;
data: {
activeElementId: string | null;
selectedValue: any;
};
}
export declare const ListboxOptionAPI: {
Provider: {
(props: {
value: ListboxOptionAPI;
children?: string | number | boolean | {} | import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
}): JSX.Element;
displayName?: string | undefined;
};
consume: () => ListboxOptionAPI;
};
export declare const ListboxOptionAPIProvider: {
(props: {
value: ListboxOptionAPI;
children?: string | number | boolean | {} | import("react").ReactElement import("react").ReactElement | null) | (new (props: any) => import("react").Component)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
}): JSX.Element;
displayName?: string | undefined;
};
export declare const useListboxOptionAPI: () => ListboxOptionAPI;
export {};