UNPKG

@stackoverfloweth/prefect-design

Version:

A collection of low-level Vue components.

14 lines (13 loc) 609 B
import { Ref } from 'vue'; import { SelectModelValue, SelectOptionNormalized } from '../types'; import { MaybeRef } from '../types/ref'; declare const unselected: unique symbol; export type UseHighlightedValue = { highlightedValue: Ref<SelectModelValue | typeof unselected>; isUnselected: (value: unknown) => value is typeof unselected; setNextHighlightedValue: () => void; setPreviousHighlightedValue: () => void; setHighlightedValueUnselected: () => void; }; export declare function useHighlightedValue(selectOptions: MaybeRef<SelectOptionNormalized[]>): UseHighlightedValue; export {};