import { type Attachment, type PickleStepArgument, type TestStepResult } from '@cucumber/messages'; import type { SupportCodeLibrary } from '../../support_code_library_builder/types'; import type { ILineAndUri } from '../../types'; import type StepDefinitionSnippetBuilder from '../step_definition_snippet_builder'; import type { ITestCaseAttempt } from './event_data_collector'; export interface IParsedTestStep { actionLocation?: ILineAndUri; argument?: PickleStepArgument; attachments: Attachment[]; keyword: string; name?: string; result: TestStepResult; snippet?: string; sourceLocation?: ILineAndUri; text?: string; } export interface IParsedTestCase { attempt: number; name: string; sourceLocation?: ILineAndUri; worstTestStepResult: TestStepResult; } export interface IParsedTestCaseAttempt { testCase: IParsedTestCase; testSteps: IParsedTestStep[]; } export interface IParseTestCaseAttemptRequest { testCaseAttempt: ITestCaseAttempt; snippetBuilder: StepDefinitionSnippetBuilder; supportCodeLibrary: SupportCodeLibrary; } export declare function parseTestCaseAttempt({ testCaseAttempt, snippetBuilder, supportCodeLibrary, }: IParseTestCaseAttemptRequest): IParsedTestCaseAttempt;