<commit_before>// Type definitions for glue 5.0
// Project: https://github.com/hapijs/glue
// Definitions by: <NAME> <https://github.com/garfty>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

import { Server, ServerOptions } from "hapi";

export interface Options {
  relativeTo: string;
  preConnections?: (Server: Server, next: (err: any) => void) => void;
  preRegister?: (Server: Server, next: (err: any) => void) => void;
}

export interface Plugin {
  plugin: string | {
      register: string;
      options?: any;
  };
  options?: any;
  routes?: any;
}

export interface Manifest {
  server: ServerOptions;
  register?: {
    plugins: string[] | Plugin[]
  };
}

export function compose(manifest: Manifest, options?: Options): Server;<commit_msg>Glue - Fixed compose to return promise<commit_after>// Type definitions for glue 5.0
// Project: https://github.com/hapijs/glue
// Definitions by: <NAME> <https://github.com/garfty>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

import { Server, ServerOptions } from "hapi";

export interface Options {
  relativeTo: string;
  preConnections?: (Server: Server, next: (err: any) => void) => void;
  preRegister?: (Server: Server, next: (err: any) => void) => void;
}

export interface Plugin {
  plugin: string | {
      register: string;
      options?: any;
  };
  options?: any;
  routes?: any;
}

export interface Manifest {
  server: ServerOptions;
  register?: {
    plugins: string[] | Plugin[]
  };
}

export function compose(manifest: Manifest, options?: Options): Promise<Server>;
{'fraction_non_alphanumeric': 0.14939024390243902, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 4.003048780487805, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 16, 'https://': 6, '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': '1641778', 'n_tokens_mistral': 520, 'n_tokens_neox': 508, 'n_words': 148}