import type { SwiftBuildResult, SwiftTestResult, SwiftRunResult, SwiftPackageResolveResult, SwiftPackageUpdateResult, SwiftPackageShowDependenciesResult, SwiftPackageCleanResult, SwiftPackageInitResult } from "../schemas/index.js"; /** * Parses `swift build` output. * Extracts compiler errors and warnings from stderr. */ export declare function parseBuildOutput(stdout: string, stderr: string, exitCode: number, duration: number, timedOut: boolean): SwiftBuildResult; /** * Parses `swift test` output. * Looks for individual test lines: * Test Case '-[ModuleTests.SomeTest testExample]' passed (0.001 seconds). * Test Case '-[ModuleTests.SomeTest testFail]' failed (0.002 seconds). * Test case 'SomeTest.testExample' passed on ... * Also parses the Swift Testing format: * Test testExample passed after 0.001 seconds. * Test testFail failed after 0.002 seconds. * And the summary line: * Test Suite 'All tests' passed at ... * Executed N tests, with M failures */ export declare function parseTestOutput(stdout: string, stderr: string, exitCode: number, duration: number): SwiftTestResult; /** * Parses `swift run` output. * Returns exit code, stdout, stderr, and duration. */ export declare function parseRunOutput(stdout: string, stderr: string, exitCode: number, duration: number, timedOut: boolean): SwiftRunResult; /** * Parses `swift package resolve` output. * Looks for lines like: * Fetching https://github.com/apple/swift-argument-parser.git from cache * Fetched https://github.com/apple/swift-argument-parser.git from cache (0.34s) * Computing version for swift-argument-parser * Computed swift-argument-parser at 1.2.3 (0.01s) * Resolving https://github.com/apple/swift-argument-parser.git at 1.2.3 */ export declare function parsePackageResolveOutput(stdout: string, stderr: string, exitCode: number, duration: number): SwiftPackageResolveResult; /** * Parses `swift package update` output. * Looks for lines like: * Updating https://github.com/apple/swift-argument-parser.git * Resolved swift-argument-parser at 1.3.0 (was 1.2.3) * Updated swift-argument-parser from 1.2.3 to 1.3.0 */ export declare function parsePackageUpdateOutput(stdout: string, stderr: string, exitCode: number, duration: number): SwiftPackageUpdateResult; /** * Parses `swift package show-dependencies` output. * Supports both text format (tree) and JSON format. * * Text format example: * . * ├── swift-argument-parser https://github.com/apple/swift-argument-parser.git @ 1.2.3 * │ └── swift-system https://github.com/apple/swift-system.git @ 1.0.0 * └── swift-log https://github.com/apple/swift-log.git @ 1.5.0 * * JSON format: standard SwiftPM dependency graph JSON. */ export declare function parsePackageShowDependenciesOutput(stdout: string, stderr: string, exitCode: number): SwiftPackageShowDependenciesResult; /** * Parses `swift package clean` output. */ export declare function parsePackageCleanOutput(exitCode: number, duration: number): SwiftPackageCleanResult; /** * Parses `swift package init` output. * Looks for lines like: * Creating library package: MyLib * Creating Package.swift * Creating .gitignore * Creating Sources/ * Creating Sources/MyLib/MyLib.swift * Creating Tests/ * Creating Tests/MyLibTests/MyLibTests.swift */ export declare function parsePackageInitOutput(stdout: string, stderr: string, exitCode: number, duration: number): SwiftPackageInitResult; //# sourceMappingURL=parsers.d.ts.map