import Intl, { Messages } from 'intl-ts'; import { Database, ModelList } from '../database'; /** * The server application must have all these data. * **Be aware that all these data may not be fully initialized when plugin constructor is called**, but must * be at the time the {@link GecoPlugin#ready()} method is called. */ export default interface ServerApp { readonly serverLang: Intl; readonly clientLang: Intl; readonly config: unknown; readonly database: Database; } /** * Check (type guard) if all given models are in database. * * @param database - The database to check. * @param models - The names of expected models. * @returns True or faulse, depending on result check. */ export declare function databaseHasModels(database: Database, ...models: Array): database is Database;