import type { ExecuteSecureTunnelTestRunOptions as ExecuteSecureTunnelTestRunPayload, ExecuteSecureTunnelTestRunResponse, TestRun, TestRunDataLocations, TestRunNetworkPatchingResult } from "@alwaysmeticulous/api"; import type { MeticulousClient } from "../types/client.types"; import type { ReplayDiffResponse } from "./replay-diff.api"; export type ExecuteSecureTunnelTestRunOptions = ExecuteSecureTunnelTestRunPayload & { client: MeticulousClient; }; export type { ExecuteSecureTunnelTestRunResponse, TestRun }; export declare const executeSecureTunnelTestRun: ({ client, headSha, tunnelUrl, basicAuthUser, basicAuthPassword, environment, isLockable, companionAssetsInfo, pullRequestHostingProviderId, postComment, debugContext, }: ExecuteSecureTunnelTestRunOptions) => Promise; export declare const getTestRun: (options: { client: MeticulousClient; testRunId: string; }) => Promise; /** * Resolves the "effective" test run that custom check results should be reported * against, accounting for network patching (session repair). * * Returns `null` if the backend does not support this endpoint (older backends), * so callers can fall back to reporting against the requested test run. */ export declare const getTestRunNetworkPatchingResult: ({ client, testRunId, }: { client: MeticulousClient; testRunId: string; }) => Promise; /** * Registers that a test run is expecting custom check results, so the Meticulous * UI shows the "Checks" tab for it while the results are computed and reported. * * Call this with the *effective* test run id (the merged run when network * patching applied — see {@link getTestRunNetworkPatchingResult}) so the tab * appears on the run the user actually sees. * * Older backends don't expose this endpoint, so a 404 is treated as a no-op * (mirroring {@link getTestRunNetworkPatchingResult}) rather than throwing. Any * other error is rethrown for the caller to handle. */ export declare const markTestRunExpectsCustomChecks: ({ client, testRunId, }: { client: MeticulousClient; testRunId: string; }) => Promise; export declare const getTestRunData: (options: { client: MeticulousClient; testRunId: string; includeAppContainerLogs?: boolean; }) => Promise; export interface GetLatestTestRunOptions { client: MeticulousClient; commitSha: string; logicalEnvironmentVersion?: number; useCloudReplayEnvironmentVersion?: boolean; } export declare const getLatestTestRunResults: ({ client, commitSha, logicalEnvironmentVersion, useCloudReplayEnvironmentVersion, }: GetLatestTestRunOptions) => Promise; export declare const getTestRunReplayDiffs: ({ client, testRunId, }: { client: MeticulousClient; testRunId: string; }) => Promise; export declare const emitTelemetry: ({ client, values, commitSha, }: { client: MeticulousClient; values: Record; commitSha?: string; }) => Promise; //# sourceMappingURL=test-run.api.d.ts.map