import type { SelectedWorkspaceFile } from "../internal/store/workspace-file-selection-store.js";
import type { WorkspaceEntry } from "./useWorkspaceEntries.js";
/**
 * Resolves a transcript tool-call file path to the {@link SelectedWorkspaceFile}
 * that opens it in the read-only Viewer, or `null` when it cannot be resolved to
 * a definite repo/root-relative file (caller keeps copy/GitHub-link fallback).
 *
 * `entries` are the client-side workspace entries (`useWorkspaceEntries`), the
 * same list the Viewer resolves against, so the returned `entryId` is directly
 * usable. `sandboxWorkspaceRoot` (when the session has git-repo entries, e.g.
 * `/home/daytona/workspace`) is stripped first so cloud-absolute paths reduce to
 * workspace-relative before per-entry anchoring.
 *
 * The result `path` is guaranteed to match what the file tree / lister emits for
 * the same file, so opening from the transcript and from the tree produce an
 * identical selection (and hit the same content fetch/cache).
 */
export declare function resolveWorkspaceFileSelection(path: string, entries: readonly WorkspaceEntry[], sandboxWorkspaceRoot?: string): SelectedWorkspaceFile | null;
//# sourceMappingURL=resolveWorkspaceFileSelection.d.ts.map