@sberdevices/plasma-temple
Version:
SberDevices CanvasApp Templates.
12 lines • 596 B
TypeScript
interface UseSpatNavCallback<T> {
(target: T): void;
}
export declare const useSpatNav: <T extends HTMLElement>(callback: UseSpatNavCallback<T>) => void;
interface ConditionCallback {
(activeElement: NonNullable<typeof document.activeElement>): boolean;
}
export declare const useActiveElementClick: (conditionCb?: ConditionCallback) => void;
export declare const useSpatNavBetweenTargets: <T extends HTMLElement>(axis: 'x' | 'y', callback: UseSpatNavCallback<T>) => void;
export declare const useSpatNavStop: (axis: 'x' | 'y') => void;
export {};
//# sourceMappingURL=useSpatNav.d.ts.map