/// import { CallLine } from "./test.unit.internal"; import { CallLineToFileOptions } from "./test.unit.types"; declare global { namespace Cypress { interface Chainable { /** * Get a created instance of the CallLine class * * @returns An instance of the CallLine class */ callLine(): Chainable; /** * Clean the CallLine array and start storing the values from the beginning */ callLineClean(): void; /** * The last existing entry. It can be `undefined` if there is no entry at * the moment or `next` has not been called. Otherwise it always returns * the last entry invoked by `next`. */ callLineCurrent(): Chainable; /** * Disable the call line */ callLineDisable(): void; /** * Enable the call line and create a new instance of the CallLine class */ callLineEnable(): void; /** * Get the number of all entries. */ callLineLength(): Chainable; /** * Get the next entry. If there is no next entry, it returns undefined. * * If the entry was added as a single argument like `lineCalled("something")`, * it will return the single value "something". But if it was added as multiple * arguments like `lineCalled("something", 1, true)`, it will return an array * `["something", 1, true]`. */ callLineNext(): Chainable; /** * Resets the counter and starts from the first entry on the next call to `cy.callLineNext` */ callLineReset(): void; /** * Save CallLine entries to a file * * @param outputDir - The folder to save the call line * @param options - Options for the file */ callLineToFile(outputDir: string, options?: CallLineToFileOptions & Partial): Chainable; } } }