import { State, StateDto } from '../models/State'; import { Changelog, Module } from '../modules/Module'; import { ConfigDto } from '../models/Config'; export interface ModuleLimitSettings { min?: number; max?: number; } export type ChangeLimitCommand = { min?: number; max?: number; }; /** * Module for limiting values. * This module has to be first in the list of modules, because otherwise limit won't properly. * * Uses `.jsr_limit` CSS class. */ export declare class ModuleLimit extends Module { private limit; private settings; constructor(settings?: ModuleLimitSettings); destroy(): void; /** * Dynamically change limit. * * @param command - limit object, that should be applied as new limit */ changeLimit(command: ChangeLimitCommand): void; initView(): void; render(state: StateDto): VoidFunction; update(_config: ConfigDto, state: State, _changelog: Changelog): State; }