import { type ProjectReadBoundary } from "../io/bootstrap-write-boundary.js"; import { type BoundedProcessOptions, type BoundedProcessResult } from "./bounded-process.js"; import { type CooperativeFinishContext } from "./cooperative-finish-context.js"; import { type SourceIdentity } from "./source-identity.js"; export declare const COOPERATIVE_GRADLE_COMMAND_CATALOG: readonly [{ readonly args: readonly ["--no-daemon", "--no-build-cache", "cleanTest", "test", "--console=plain"]; readonly id: "test"; }, { readonly args: readonly ["--no-daemon", "--no-build-cache", "build", "--console=plain"]; readonly id: "build"; }]; export declare const COOPERATIVE_GRADLE_COMMAND_CATALOG_ID: "java-spring-gradle-cooperative.1"; export declare const COOPERATIVE_COMMAND_TIMEOUT_MS = 120000; export declare const COOPERATIVE_ATTEMPT_TIMEOUT_MS = 300000; export type CooperativeGradleVerification = { readonly code: string; readonly kind: "blocked"; } | { readonly kind: "passed"; readonly value: { readonly commandPlanDigest: string; readonly buildOutputDigest: string; readonly junitDigest: string; readonly passedTestCount: number; readonly skippedTestCount: number; readonly sourceIdentity: SourceIdentity; readonly sourceSnapshotDigest: string; readonly testCount: number; }; }; export type CooperativeGradleVerificationOptions = { readonly now?: () => number; readonly runProcess?: (options: BoundedProcessOptions) => BoundedProcessResult; }; export declare function runCooperativeGradleVerification(projectDir: string, context: CooperativeFinishContext, options?: CooperativeGradleVerificationOptions): CooperativeGradleVerification; export declare function runCooperativeGradleVerificationWithinBoundary(projectDir: string, context: CooperativeFinishContext, boundary: ProjectReadBoundary, options?: CooperativeGradleVerificationOptions): CooperativeGradleVerification; export declare function runProjectFinishAttestationGradleVerification(projectDir: string, context: CooperativeFinishContext, options?: CooperativeGradleVerificationOptions): CooperativeGradleVerification; export declare function runProjectFinishAttestationGradleVerificationWithinBoundary(projectDir: string, context: CooperativeFinishContext, projectReadBoundary: ProjectReadBoundary, options?: CooperativeGradleVerificationOptions): CooperativeGradleVerification;