import { Record as DelogRecord } from '~server/data/interfaces'; export type FormattingRule = (data: DelogRecord) => string; export type FormattingRules = Record; declare class Formatter { private data; constructor(data: DelogRecord); /** * Given the data and optional extra formatting rules, it returns the formatted log. * * @param value */ format(extraFormattingRules?: FormattingRules): string; /** * Returns an array of identifiers that are not primitives. * E.g. from `'$TIME $TEXT $CUSTOM'` it returns `[ 'CUSTOM' ]`. * * @param value */ nonPrimitives(value: string): string[]; } export default Formatter;