import { DBEntity } from "./db-entity"; export default class DBSetting extends DBEntity { id: string; valueJSON: string; get value(): any; set value(val: any); /** * Retrieve the value of the given Setting key. Returns the default if none is saved. * Once returned from DB, this value is cached in memory. Thus, repeated lookups will not cause slowdown. */ static get(key: K): Promise; /** * Set the value of the given Setting key. Automatically saves. Also updates the in-memory settings cache. */ static set(key: K, val: S[K]): Promise; /** * Retrieves an object with all current setting keys and values. * Useful for sending to any interface that needs to know all current settings. */ static getAll(): Promise; } declare type DefSettings = typeof defaultSettings; declare const defaultSettings: { test: number; refreshToken: string; userAgent: string; /** The maximum number of concurrent downloads. */ concurrentThreads: number; /** The output template RMD uses when generating a file name. */ outputTemplate: string; }; export {};