import { PipeTransform } from '@angular/core'; import { AngularDataContext } from '@themost/angular'; import { ConfigurationService } from './configuration.service'; import * as i0 from "@angular/core"; export declare function round(x: any, n?: number): number; export declare class GradeScale { private _locale; private scale; id?: number; name?: string; scaleType?: number; scaleFactor?: number; scaleBase?: number; formatPrecision: number; scalePrecision: number; values?: any[]; private _formatter; private readonly _decimalCharRegExp; constructor(_locale: string, scale?: any); /** * Formats the specified based on this grade scale and returns the formatted value * @param {number} grade * @returns string */ format(grade: number): string; /** * Converts the given grade to the equivalent grade value base on this grade scale * @param grade */ convert(grade: any): number | undefined; } export declare class GradeScaleService { private _context; private _configurationService; private _gradeScales?; constructor(_context: AngularDataContext, _configurationService: ConfigurationService); /** * Gets all the available grade scales */ getGradeScales(): Promise; /** * Gets a grade scale based on the given identifier * @param {*} id */ getGradeScale(id: any): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export declare class GradePipe implements PipeTransform { private _gradeScaleService; constructor(_gradeScaleService: GradeScaleService); transform(value: any, gradeScale?: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; }