import { API } from '../core/api' ; extends API export default class Logs extends API { param subsystem param tex returns async get ( subsystem ? , tex ? ) { const response = await this . sendGet ( `logs${ subsystem ? `/${ subsystem }` : '' }` , undefined , { 'tex-only' : tex || false } ) ; return response . json ( ) as Promise < Record < string , string > > ; } param level param subsystem param tex returns async set ( level , subsystem ? , tex ? ) { const response = await this . sendPost ( `logs${ subsystem ? `/${ subsystem }` : '' }` , undefined , { level , 'tex-only' : tex || false } ) ; return response . json ( ) as Promise < Record < string , string > > ; } }