@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
15 lines (14 loc) • 852 B
TypeScript
import type { RefObject } from 'react';
import type { SectionSelectionMode } from './types';
export declare function setSectionDomApi({ element, inputId, displayValue, caretPositionsRef, sectionSelectionModeRef, selectSection, setSectionCaret, }: {
element: HTMLSpanElement;
inputId: string;
displayValue: string;
caretPositionsRef: RefObject<Record<string, number>>;
sectionSelectionModeRef: RefObject<Record<string, SectionSelectionMode>>;
selectSection: (inputId: string) => void;
setSectionCaret: (inputId: string, position: number) => void;
}): void;
export declare function pickSectionDomProps(props: Record<string, unknown> | undefined): Record<string, unknown>;
export declare function ensureTextNode(element: HTMLElement): ChildNode;
export declare function listAllSections(scope?: HTMLElement): HTMLSpanElement[];