export default TestomatioPipe; export type Pipe = import("../../types/types.js").Pipe; export type TestData = import("../../types/types.js").TestData; export type BatchMode = import("../../types/types.js").BatchMode; export type CreateRunParams = import("../../types/types.js").CreateRunParams; /** * @typedef {import('../../types/types.js').Pipe} Pipe * @typedef {import('../../types/types.js').TestData} TestData * @typedef {import('../../types/types.js').BatchMode} BatchMode * @typedef {import('../../types/types.js').CreateRunParams} CreateRunParams * @class TestomatioPipe * @implements {Pipe} */ declare class TestomatioPipe implements Pipe { constructor(params: any, store: any); batch: { /** @type {BatchMode} * Batch upload mode: * - `auto`: upload tests automatically by time interval (e.g. every 5 seconds). * - `manual`: buffer tests and upload only when `sync()` is invoked manually. * - `disabled`: send one test per request, no batching. */ mode: BatchMode; intervalFunction: any; intervalTime: number; tests: any[]; batchIndex: number; numberOfTimesCalledWithoutTests: number; }; retriesTimestamps: any[]; reportingCanceledDueToReqFailures: boolean; notReportedTestsCount: number; isEnabled: boolean; url: any; apiKey: any; store: any; title: any; sharedRun: boolean; sharedRunTimeout: number; groupTitle: any; env: string; label: string; description: any; ciProfile: string; ciParams: Record; client: Gaxios; proceed: boolean; jiraId: string; runId: any; createNewTests: any; hasUnmatchedTests: boolean; requestFailures: number; /** * Asynchronously prepares and retrieves the Testomat.io test grepList based on the provided options. * @param {Object} opts - The options for preparing the test grepList. * @returns {Promise} - An array containing the retrieved * test grepList, or an empty array if no tests are found or the request is disabled. * @throws {Error} - Throws an error if there was a problem while making the request. */ prepareRun(opts: any): Promise; /** * Creates a new run on Testomat.io * @param {CreateRunParams} params * @returns Promise */ createRun(params?: CreateRunParams): Promise; runUrl: string; runPublicUrl: any; /** * Adds a test to the batch uploader (or reports a single test if batch uploading is disabled) */ addTest(data: any): Promise>; /** * Syncs / flushes buffered tests by uploading them as a batch * This is used to manually trigger batch upload (e.g., after all tests are added) */ sync(): Promise; /** * @param {import('../../types/types.js').RunData} params * @returns */ finishRun(params: import("../../types/types.js").RunData): Promise; toString(): string; #private; } import { Gaxios } from 'gaxios';