import React from 'react';

const HIGHLIGHT_TYPE = {
    BACKGROUND: 'BACKGROUND',
    BOLD: 'BOLD'
};

interface HighlighterProps extends Partial<HighlighterDefaultProps> {
    children?: React.ReactNode;
    listHighlightType?: typeof HIGHLIGHT_TYPE.BACKGROUND | typeof HIGHLIGHT_TYPE.BOLD;
    highlightRegexp?: RegExp;
    filterRegexp?: RegExp;
    highlight?: Function;
    title?: string;
}

interface HighlighterDefaultProps {
    children: null;
    listHighlightType: typeof HIGHLIGHT_TYPE.BOLD;
    highlightRegexp: null;
    filterRegexp: null;
    title: null;
    highlight: Function;
}

export class Highlighter extends React.Component<HighlighterProps> {}
