<commit_before>import Logger from 'bunyan'

import BaseServer, { Reporter, BaseServerOptions } from '../base-server'

/**
 * BaseServer options.
 */
export type ServerOptions = BaseServerOptions & {
  /**
   * Report process/errors to CLI in bunyan JSON or in human readable
   * format. It can be also a function to show current server status.
   * Default is `'human'`.
   */
  reporter?: 'human' | 'json' | Reporter

  /**
   * Bunyan logger with custom settings.
   */
  bunyan?: Logger
}

/**
 * End-user API to create Logux server.
 *
 * ```js
 * const { Server } = require('@logux/server')
 *
 * const env = process.env.NODE_ENV || 'development'
 * const envOptions = {}
 * if (env === 'production') {
 *   envOptions.cert = 'cert.pem'<commit_msg>Clear type names<commit_after>import { Logger as BunyanLogger } from 'bunyan'

import BaseServer, { Reporter, BaseServerOptions } from '../base-server'

/**
 * BaseServer options.
 */
export type ServerOptions = BaseServerOptions & {
  /**
   * Report process/errors to CLI in bunyan JSON or in human readable
   * format. It can be also a function to show current server status.
   * Default is `'human'`.
   */
  reporter?: 'human' | 'json' | Reporter

  /**
   * Bunyan logger with custom settings.
   */
  bunyan?: BunyanLogger
}

/**
 * End-user API to create Logux server.
 *
 * ```js
 * const { Server } = require('@logux/server')
 *
 * const env = process.env.NODE_ENV || 'development'
 * const envOptions = {}
 * if (env === 'production') {
 *   envOptions.cert = 'cert.pem'
{'fraction_non_alphanumeric': 0.14183474300585555, 'fraction_numerical': 0.0, 'mean_word_length': 3.213698630136986, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3466793', 'n_tokens_mistral': 485, 'n_tokens_neox': 478, 'n_words': 151}