import { Assert } from './assert'; import { Status } from './status'; export declare class Asserts { private _assets; get length(): number; private _mustStop; /** * This will try to create a new assert or get and change assert with the same code * The new values are preserved, except if they are null * * @param code - * @param title - * @param status - * @param explanation - */ put(code: string, title?: string | null, status?: Status | null, explanation?: string | null): Assert; /** * This will try to create a new assert or get and change assert with the same code * The new values are preserved, except if they are null * * @param code - * @param status - * @param explanation - */ putStatus(code: string, status?: Status | null, explanation?: string | null): Assert; /** * Get and or set the flag that alerts about stop flow * Consider this flag as: "Something was found, you should not continue" * * @param newValue - Value of the flag, if null then will not change the flag * @returns the previous value of the flag */ mustStop(newValue?: boolean | null): boolean; hasStatus(status: Status): boolean; hasErrors(): boolean; hasWarnings(): boolean; getFirstStatus(status: Status): Assert | undefined; byStatus(status: Status): Map; get(code: string): Assert; exists(code: string): boolean; oks(): Map; errors(): Map; warnings(): Map; nones(): Map; add(assert: Assert): void; private indexOf; remove(assert: Assert): void; removeByCode(code: string): void; removeAll(): void; import(asserts: Asserts): void; [Symbol.iterator](): IterableIterator<[string, Assert]>; entries(): IterableIterator<[string, Assert]>; keys(): IterableIterator; values(): IterableIterator; }