/// import { Schema } from "ajv"; import { AssertSchemaType } from "./schema"; import { CompareCallback, JsFunction } from "./generic-types"; import { iAssertionIs } from "./iassertion-is"; import { IteratorBoolCallback, IteratorCallback } from "./iterator-callbacks"; export interface iAssertion { value: any; text: string; subject: string; and: iAssertion; type: iAssertion; length: iAssertion; trim: iAssertion; keys: iAssertion; values: iAssertion; not: iAssertion; optional: iAssertion; result: Promise; assertionMade: boolean; name: string; passed: boolean | null; isFinalized: boolean; is: iAssertionIs; sort(compareFunc?: CompareCallback): iAssertion; setDefaultMessages(notMessage: string, standardMessage: string): iAssertion; setDefaultMessage(message: string): iAssertion; setDefaultNotMessage(message: string): iAssertion; as(aliasName: string): iAssertion; exactly(value: any): iAssertion; equals(value: any): iAssertion; like(value: any): iAssertion; greaterThan(value: any): iAssertion; greaterThanOrEquals(value: any): iAssertion; lessThan(value: any): iAssertion; lessThanOrEquals(value: any): iAssertion; between(min: any, max: any): iAssertion; matches(pattern: string | RegExp): iAssertion; contains(value: any): iAssertion; startsWith(value: any): iAssertion; endsWith(value: any): iAssertion; in(values: any[]): iAssertion; includes(value: any): iAssertion; exists(): iAssertion; hidden(): Promise; visible(): Promise; resolves(continueOnReject?: boolean): Promise; rejects(continueOnReject?: boolean): Promise; pluck(property: string): iAssertion; nth(index: number): iAssertion; map(callback: IteratorCallback): Promise; every(callback: IteratorBoolCallback): Promise; everySync(callback: IteratorBoolCallback): iAssertion; some(callback: IteratorBoolCallback): Promise; none(callback: IteratorBoolCallback): Promise; assert(a: any, b?: any): iAssertion; comment(input: any): iAssertion; schema(schemaName: string, useJsonSchema: boolean): Promise; schema(schemaName: string, schemaType?: AssertSchemaType): Promise; schema(schema: Schema, schemaType?: AssertSchemaType): Promise; looksLike(imageData: Buffer): iAssertion; looksLike(imageLocalPath: string): iAssertion; looksLike(imageData: Buffer, threshold: number): iAssertion; looksLike(imageLocalPath: string, threshold: number): iAssertion; looksLike(imageData: Buffer, thresholdPercent: string): iAssertion; looksLike(imageLocalPath: string, thresholdPercent: string): iAssertion; hasValue(value?: any): Promise; hasProperty(key: string, value?: any): Promise; hasAttribute(key: string, value?: string | RegExp): Promise; hasClassName(value?: string | RegExp): Promise; hasText(text?: string | RegExp): Promise; hasTag(tagName?: string | RegExp): Promise; eval(js: JsFunction, ...args: any[]): Promise; evalEvery(js: JsFunction, ...args: any[]): Promise; execute(bool: boolean, actualValue: any, highlightText?: string | null): iAssertion; }