import * as React from 'react';

type ListHighlightMode = 'BACKGROUND' | 'BOLD';

export type CommonListHighlightProps = {
    children?: React.ReactNode;
    title?: string;
    textHighlightPattern?: RegExp;
    textFilterPattern?: RegExp;
    listHighlightType?: ListHighlightMode;
    containsRichText?: boolean;
} & Partial<CommonListHighlightDefaultProps>;

export type CommonListHighlightDefaultProps = {
    listHighlightType: ListHighlightMode;
    containsRichText: boolean;
}

export class CommonListHighlight<P extends CommonListHighlightProps> extends React.Component<P> {
    static HIGHLIGHT_TYPE_BACKGROUND: 'BACKGROUND';
    static HIGHLIGHT_TYPE_BOLD: 'BOLD';
}