/// /// /// import { ITaskSpecEnvelopes, ITaskCreateStringAttachment, ITaskTestCaseStarted, ITaskTestStepStarted, ITaskTestStepFinished, ITaskTestCaseFinished } from "./cypress-task-definitions"; export declare function beforeRunHandler(config: Cypress.PluginConfigOptions): Promise; export declare function afterRunHandler(config: Cypress.PluginConfigOptions): Promise; export declare function beforeSpecHandler(config: Cypress.PluginConfigOptions, spec: Cypress.Spec): Promise; export declare function afterSpecHandler(config: Cypress.PluginConfigOptions, spec: Cypress.Spec, results: CypressCommandLine.RunResult): Promise; export declare function afterScreenshotHandler(config: Cypress.PluginConfigOptions, details: Cypress.ScreenshotDetails): Promise; export declare function specEnvelopesHandler(config: Cypress.PluginConfigOptions, data: ITaskSpecEnvelopes): Promise; export declare function testCaseStartedHandler(config: Cypress.PluginConfigOptions, data: ITaskTestCaseStarted): boolean; export declare function testStepStartedHandler(config: Cypress.PluginConfigOptions, data: ITaskTestStepStarted): boolean; export type Attach = (data: string | Buffer, mediaType?: string) => void; export type OnAfterStep = (options: { wasLastStep: boolean; attach: Attach; }) => Promise | void; export declare function testStepFinishedHandler(config: Cypress.PluginConfigOptions, options: { onAfterStep?: OnAfterStep; }, { wasLastStep, ...testStepFinished }: ITaskTestStepFinished): Promise; export declare function testCaseFinishedHandler(config: Cypress.PluginConfigOptions, data: ITaskTestCaseFinished): boolean; export declare function createStringAttachmentHandler(config: Cypress.PluginConfigOptions, { data, mediaType, encoding }: ITaskCreateStringAttachment): Promise;