declare const canonicalRemoteUrl: (raw: string) => string | null; /** Outcome of the `rev-parse --show-toplevel` probe that gates every other git * field. Reported to the server so a dropped repo/branch ref is attributable. */ type WorkspaceProbe = "ok" | "not_a_repo" | "git_missing" | "git_timeout" | "git_denied" | "git_empty_output" | "git_failed"; type WorkspaceContext = { readonly cwd?: string; readonly repoName?: string; readonly branch?: string; readonly commit?: string; readonly remoteUrl?: string; readonly probe?: WorkspaceProbe; }; declare const gitContext: (cwd: string) => WorkspaceContext; export { canonicalRemoteUrl, gitContext }; export type { WorkspaceContext, WorkspaceProbe };