import { Database } from "./Database.js"; import { Logger } from "../../Logger.js"; /** * Command-line options that select a database. */ export interface DatabaseOptions { /** * The database file or URL. */ source?: string; /** * The *U* sources file. */ sources?: string; /** * The *U* world map file. */ worldmap?: string; count?: string; } export declare class DatabaseFactory { static readonly UDB_DATA_FILE_DEFAULT = "../data/udb/input/U.RND"; static readonly UDB_SOURCES_FILE_DEFAULT = "../data/udb/input/usources.txt"; static readonly UDB_WORLD_MAP_FILE_DEFAULT = "../data/udb/input/WM.VCE"; static readonly NUFORC_URL_DEFAULT = "http://www.nuforc.org/webreports"; /** * @param name The database type ("udb" or "nuforc"). * @param logger * @param options User-provided paths are relative to the current directory, defaults are relative to the package. */ static create(name: string, logger: Logger, options?: DatabaseOptions): Database; }