import type { SuggestedEdit } from "../../types";
export type SuggestionDisplayMode = "baseline" | "suggestions";
export type SuggestionDisplayFormat = "plain" | "diff";
export type SuggestionDisplayField = {
    fieldId: string;
    itemId: string;
    language: string;
    version: number;
    pageItemId?: string;
    pageItemVersion?: number | null;
};
export type SuggestionDisplayModifiedField = {
    fieldId: string;
    item: {
        id: string;
        language: string;
        version: number;
    };
    value: string | null;
};
export type SuggestionDisplayResult = {
    baselineValue: string;
    mergedValue: string;
    displayValue: string;
    suggestions: SuggestedEdit[];
    hasSuggestions: boolean;
};
export declare function getPendingFieldSuggestions(suggestedEdits: SuggestedEdit[], field: SuggestionDisplayField): SuggestedEdit[];
export declare function getBaselineFieldValue({ repositoryValue, modifiedFields, field, }: {
    repositoryValue: string | null | undefined;
    modifiedFields?: SuggestionDisplayModifiedField[];
    field: SuggestionDisplayField;
}): string;
export declare function mergePendingSuggestionValues(baselineValue: string, suggestions: SuggestedEdit[]): string;
export declare function getSuggestionDiffHtml(baselineValue: string, mergedValue: string): string;
export declare function getSuggestionDisplayValue({ repositoryValue, modifiedFields, suggestedEdits, field, mode, format, }: {
    repositoryValue: string | null | undefined;
    modifiedFields?: SuggestionDisplayModifiedField[];
    suggestedEdits: SuggestedEdit[];
    field: SuggestionDisplayField;
    mode: SuggestionDisplayMode;
    format?: SuggestionDisplayFormat;
}): SuggestionDisplayResult;
