/** * GetGuiStatusList Handler - List GUI statuses for an ABAP program * * Uses ADT object structure API to discover GUI statuses (PROG/PC nodes). * Direct REST sub-resource endpoints (/gui_statuses) don't exist in ADT. * * The object structure only lists statuses the workbench navigation index * knows about. A CUA written through the dispatcher (CUA_WRITE) is not in * that index (seen on BASIS 7.40), so when ADT lists none — or the structure * call fails for a reason other than "program not found" — the list is * derived from the CUA_FETCH STA rows instead. */ import type { HandlerContext } from '../../../lib/handlers/interfaces'; export declare const TOOL_DEFINITION: { readonly name: "GetGuiStatusList"; readonly available_in: readonly ["onprem", "legacy"]; readonly description: "[read-only] List all GUI statuses belonging to an ABAP program."; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly program_name: { readonly type: "string"; readonly description: "Program name (e.g., SAPMV45A)."; }; }; readonly required: readonly ["program_name"]; }; }; export interface GuiStatusListEntry { status_name: string; description?: string; status_type?: string; } /** PROG/PC leaf nodes of an ADT object structure document. */ export declare function parseStatusesFromStructure(xml: string): GuiStatusListEntry[]; /** STA rows of a CUA_FETCH result (keys may be upper or lower case). */ export declare function statusesFromCua(cua: any): GuiStatusListEntry[]; export declare function handleGetGuiStatusList(context: HandlerContext, args: { program_name: string; }): Promise<{ isError: boolean; content: { type: string; text: any; }[]; }>; //# sourceMappingURL=handleGetGuiStatusList.d.ts.map