react-highlight-selector
Version:
Text highlighter with customizable palette and text copier
13 lines (12 loc) • 511 B
TypeScript
import React from 'react';
import { Dispatch, SetStateAction } from 'react';
import { SelectionType } from '../types';
export declare const SelectionsContext: React.Context<{
selections: Record<string, SelectionType[]>;
setSelections: Dispatch<SetStateAction<Record<string, SelectionType[]>>>;
} | null>;
type SelectionProviderType = {
children: React.ReactNode;
};
export declare const SelectionProvider: ({ children }: SelectionProviderType) => import("react/jsx-runtime").JSX.Element;
export {};