import 'mocha'; /** * Properties required for an SDK enum test * @public */ export interface SdkEnumTest { assert: any; input?: string | number; } /** * Properties required for an SDK model test mock * @public */ export interface SdkModelTestMock { assert: string; input: object; } /** * Properties required for an SDK string test * @public */ export interface SdkStringTest { assert: string; input?: string; } /** * Complete set of properties required for an SDK enum test suite * @public */ export interface SdkEnumTestSuite { conversionFunction: (data?: any) => Promise; targetEnum: string; tests: SdkEnumTest[]; } /** * Complete set of properties required for an SDK model test suite * @public */ export interface SdkModelTestSuite { conversionFunction: (data?: any) => Promise; mocks: SdkModelTestMock[]; targetModel: string; } /** * Currently supported primitive assertions * @public */ export declare enum SdkTestAssertionType { IS_NULL = "is_null", IS_NOT_NULL = "is_not_null", IS_NOT_UNDEFINED = "is_not_undefined", IS_TRUE = "is_true", IS_FALSE = "is_false", TO_NOT_THROW = "not_to_throw", TO_THROW = "to_throw" } /** * Standard function signature for an assertion * @public */ export declare type Assertion = (data?: any) => Promise; /** * Complete set of properties required for an SDK string test suite * @public */ export interface SdkStringTestSuite { conversionFunction: Assertion; strings: SdkStringTest[]; targetString: string; } /** * Defines an individual assertion * @public */ export interface SdkAssertionTest { assertion?: SdkTestAssertionType; assertionFunction: Assertion; input?: any; name: string; property?: string; } /** * Defines a collection of primitive tests to be executed * @public */ export interface SdkAssertionTestSuite { assertions: SdkAssertionTest[]; name: string; } /** * Executes an SDK assertion suite using the provided functions * * @param suite - The suite to be executed * @public */ export declare const testSdkAssertion: (suite: SdkAssertionTestSuite) => Promise; /** * Executes an SDK enum conversion test suite using the provided conversion * function and array of tests. * * @param suite - The suite to be executed * @public */ export declare const testSdkEnumConversion: (suite: SdkEnumTestSuite) => Promise; /** * Executes an SDK model conversion test suite using the provided conversion * function and array of mocks. * * @param suite - The suite to be executed * @public */ export declare const testSdkModelConversion: (suite: SdkModelTestSuite) => Promise; /** * Executes an SDK string conversion test suite using the provided conversion * function and array of tests. * * @param suite - The suite to be executed * @public */ export declare const testSdkStringConversion: (suite: SdkStringTestSuite) => Promise; /** * Executes an method and asserts the execution time is within bounds * * @param suite - The suite to be executed * @public */ export declare const testExecutionTime: (name: string, method: any, time: number) => void; //# sourceMappingURL=testSdk.d.ts.map