import { AdtHTTP } from "../AdtHTTP"; export interface TextElement { id: string; text: string; maxLength?: number; ddicReference?: string; } export interface TextElementsResult { textElements: TextElement[]; programName: string; } export type TextElementCategory = "symbols" | "selections" | "headings"; /** * Builds the text elements base URL for an object. * * @param objectType ADT type string, e.g. "PROG/P", "CLAS/OC", "FUGR/F" * @param objectName Object name. Names containing "/" (namespace objects) are URL-encoded. */ export declare function textElementsUrl(objectType: string, objectName: string): string; export declare function parseTextElements(body: string): TextElement[]; export declare function formatTextElements(elements: TextElement[], category: TextElementCategory): string; /** * Retrieves text elements (selection texts) for an ABAP object. * * @param h HTTP client * @param url Text elements base URL, e.g. from {@link textElementsUrl} */ export declare function getTextElements(h: AdtHTTP, url: string, category?: TextElementCategory): Promise; /** * Writes text elements for an ABAP object. * The caller is responsible for locking (via the generic `lock()`) before * and unlocking (via `unLock()` then activating) after. * * @param h HTTP client * @param url Text elements base URL, e.g. from {@link textElementsUrl} * @param elements Array of text elements to write * @param lockHandle Lock handle obtained from `lock()` * @param transport Optional transport/correction number */ export declare function setTextElements(h: AdtHTTP, url: string, category: TextElementCategory, elements: TextElement[], lockHandle: string, transport?: string): Promise; //# sourceMappingURL=textelements.d.ts.map