UNPKG

@navikt/ds-react

Version:

React components from the Norwegian Labour and Welfare Administration.

44 lines (43 loc) 2.02 kB
import { Dispatch, SetStateAction } from "react"; export declare const VirtualFocusDescendantsProvider: import("react").Provider<import("../hooks/descendants/descendant").DescendantsManager<HTMLDivElement, { handleOnSelect: () => void; handleOnActive: () => void; }>>, useVirtualFocusDescendantsContext: <S extends boolean = true>(strict?: S) => S extends true ? import("../hooks/descendants/descendant").DescendantsManager<HTMLDivElement, { handleOnSelect: () => void; handleOnActive: () => void; }> : import("../hooks/descendants/descendant").DescendantsManager<HTMLDivElement, { handleOnSelect: () => void; handleOnActive: () => void; }> | undefined, useVirtualFocusDescendantInitializer: () => import("../hooks/descendants/descendant").DescendantsManager<HTMLDivElement, { handleOnSelect: () => void; handleOnActive: () => void; }>, useVirtualFocusDescendant: (options?: import("../hooks/descendants/descendant").DescendantOptions<{ handleOnSelect: () => void; handleOnActive: () => void; }> | undefined) => { descendants: import("../hooks/descendants/descendant").DescendantsManager<HTMLDivElement, { handleOnSelect: () => void; handleOnActive: () => void; }>; index: number; enabledIndex: number; register: (instance: HTMLDivElement | null) => void; }; export declare const VirtualFocusInternalContextProvider: import("react").ForwardRefExoticComponent<{ virtualFocusIdx: number; setVirtualFocusIdx: Dispatch<SetStateAction<number>>; loop: boolean; uniqueId: string; } & { children: React.ReactNode; } & import("react").RefAttributes<unknown>>, useVirtualFocusInternalContext: <S extends boolean = true>(strict?: S) => S extends true ? { virtualFocusIdx: number; setVirtualFocusIdx: Dispatch<SetStateAction<number>>; loop: boolean; uniqueId: string; } : { virtualFocusIdx: number; setVirtualFocusIdx: Dispatch<SetStateAction<number>>; loop: boolean; uniqueId: string; } | undefined;