import type { TranslationBundle } from '@jupyterlab/translation'; import type { SelectedLineRange } from '@pierre/diffs'; import type { IAskAgentRequest } from '../askAgent/tokens'; import type { IXtralabDiffModel } from './diffWidget'; /** * Build the ask-agent request for a line range selected in a git diff. * * The range's `side` decides which file version the line numbers (and the * embedded snippet) refer to: `deletions` reads from the reference text, * anything else — including the sideless context rows of a unified diff, * whose gutter shows new-side numbers — reads from the challenger text. A * gutter drag that crosses the two split columns has endpoints in different * line-number spaces, so it is described textually instead of as a numeric * range. */ export declare function buildDiffAskRequest(options: { model: IXtralabDiffModel; oldText: string; newText: string; range: SelectedLineRange; anchor: DOMRect | null; trans: TranslationBundle; }): IAskAgentRequest;