import { type DelegationInput, type SidekickEvidence } from "../../internal-providers/sidekick-contracts/index.js"; import type { CloudSidekickContext } from "../../adapters/cloud/sidekick.js"; export declare const cliEntrypoint: string; export declare const allCapabilities: readonly ["repository.read", "repository.write.worktree", "tests.run", "inference.use"]; export declare const patchText = "diff --git a/hello.txt b/hello.txt\n--- a/hello.txt\n+++ b/hello.txt\n@@ -1 +1 @@\n-old\n+new\n"; export type RecordedRequest = { method: string; path: string; body: Record; authorization: string | undefined; }; /** Real loopback HTTP and real private OAuth store. Never calls a provider, Git network, or external service. */ export declare function cloudFusionFixture(options?: { signal?: AbortSignal; }): Promise<{ root: string; cwd: string; home: string; configPath: string; origin: string; baseCommitSha: string; controls: { actor: CloudSidekickContext; accessToken: string; refreshToken: string; refreshes: number; expireNextCreate: boolean; holdNextAdmission: boolean; heldAdmissionClosed: boolean; loseNextAdmission: boolean; rejectNextAdmission: boolean; loseNextFollowUp: boolean; rejectNextFollowUpBudget: boolean; loseNextReview: boolean; patchGone: boolean; malformedResult: boolean; unavailableFollowUpReceipt: "missing" | "corrupt" | undefined; expireNextEvidence: boolean; beforeEvidence: (() => void) | undefined; afterEvidence: (() => void) | undefined; evidenceResponse: ((value: SidekickEvidence) => unknown) | undefined; }; requests: RecordedRequest[]; items: Map; operations: Map; patches: Map; env: Record; cli: (args: string[], directory?: string) => Promise<{ code: number | null; stdout: string; stderr: string; }>; git: (...args: string[]) => string; admissions: Map; }>; evidenceFor: (id: string) => SidekickEvidence; activeCliPids: () => number[]; session: () => Promise; input(sessionId: string, overrides?: Partial): DelegationInput; ready(id: string, changed?: boolean): { protocolVersion: 1; delegationId: string; attemptId: string; generation: string; baseCommitSha: string; summary: string; patch: { kind: "no_change"; } | { kind: "patch"; sha256: string; bytes: number; }; changedFiles: { path: string; status: "added" | "modified" | "deleted"; beforeSha256: string | null; afterSha256: string | null; }[]; tests: { command: string; outcome: "failed" | "skipped" | "passed" | "not_run"; exitCode: number | null; }[]; warnings: string[]; complete: boolean; digest: string; }; readGreeting: () => string; close: () => Promise; }>;