import * as z from 'zod'; import type { HandlerContext } from '../../../lib/handlers/interfaces'; import { type SqlQueryResponse } from '../../system/readonly/handleGetSqlQuery'; export declare const TOOL_DEFINITION: { readonly name: "GetTableContents"; readonly available_in: readonly ["onprem", "cloud"]; readonly description: "[read-only] Retrieve contents (data preview) of an ABAP database table or CDS view, like SE16. Compact by default: column names only, empty cell values left out of each row, 20 rows. Use fields to keep only some columns and include_metadata for column types/descriptions."; readonly inputSchema: { readonly table_name: z.ZodString; readonly max_rows: z.ZodOptional; readonly fields: z.ZodOptional>; readonly include_metadata: z.ZodOptional; readonly acknowledge_risk: z.ZodOptional; }; }; interface CompactOptions { fields?: string[]; includeMetadata?: boolean; } /** * Shrink a parsed data preview for the model: keep the requested columns, * drop empty cells from each row and report column names only unless full * metadata was asked for. Every requested column stays listed in `columns`, * so a key missing from a row means that cell is empty. */ export declare function compactTableContents(tableName: string, parsed: SqlQueryResponse, opts?: CompactOptions): Record; export declare function handleGetTableContents(context: HandlerContext, args: any): Promise<{ isError: boolean; content: { type: string; text: string; }[]; }>; export {}; //# sourceMappingURL=handleGetTableContents.d.ts.map