import * as messages from "@cucumber/messages"; import { ITaskCreateStringAttachment, ITaskFrontendTrackingError, ITaskSpecEnvelopes } from "./cypress-task-definitions"; import { CypressCucumberError } from "./helpers/error"; import { IStepHookParameter } from "./public-member-types"; export declare class CypressCucumberStateError extends CypressCucumberError { } export declare function beforeRunHandler(config: Cypress.PluginConfigOptions): Promise; export declare function afterRunHandler(config: Cypress.PluginConfigOptions, results: CypressCommandLine.CypressRunResult | CypressCommandLine.CypressFailedRunResult): Promise; export declare const beforeSpecHandler: (config: Cypress.PluginConfigOptions, spec: Cypress.Spec) => Promise; export declare const afterSpecHandler: (config: Cypress.PluginConfigOptions, spec: Cypress.Spec, results: CypressCommandLine.RunResult) => Promise; export declare function afterScreenshotHandler(config: Cypress.PluginConfigOptions, details: Cypress.ScreenshotDetails): Promise; export declare const specEnvelopesHandler: (config: Cypress.PluginConfigOptions, data: ITaskSpecEnvelopes) => Promise; export declare const testCaseStartedHandler: (config: Cypress.PluginConfigOptions, data: messages.TestCaseStarted) => Promise; export declare const testStepStartedHandler: (config: Cypress.PluginConfigOptions, data: messages.TestStepStarted) => Promise; export type Attach = (data: string | Buffer, mediaTypeOrOptions?: string | { mediaType: string; fileName?: string; }) => void; export type OnAfterStep = (options: { attach: Attach; log: (text: string) => void; result: messages.TestStepResult; } & IStepHookParameter) => Promise | void; export declare const testStepFinishedHandler: (config: Cypress.PluginConfigOptions, options: { onAfterStep?: OnAfterStep; }, testStepFinished: messages.TestStepFinished) => Promise; export declare const testRunHookStartedHandler: (config: Cypress.PluginConfigOptions, data: messages.TestRunHookStarted) => Promise; export declare const testRunHookFinishedHandler: (config: Cypress.PluginConfigOptions, data: messages.TestRunHookFinished) => Promise; export declare const testCaseFinishedHandler: (config: Cypress.PluginConfigOptions, data: messages.TestCaseFinished) => Promise; export declare const createStringAttachmentHandler: (config: Cypress.PluginConfigOptions, args_0: ITaskCreateStringAttachment) => Promise; export declare function frontendTrackingErrorHandler(config: Cypress.PluginConfigOptions, data: ITaskFrontendTrackingError): boolean; export declare const suggestion: (config: Cypress.PluginConfigOptions, data: messages.Suggestion) => Promise;