import { Variables } from 'graphql-request'; export declare function debugLogRequestInfo(api: string, query: string, url: string, variables?: Variables, headers?: Record): void; export declare function sanitizeVariables(variables: Variables): string; /** * Extracts human-readable error messages from a GraphQL errors array. * * Some APIs (e.g. App Management) return structured errors nested inside * `extensions.app_errors.errors[].message`. When those are present, we extract * them so the CLI displays a clean message instead of a raw JSON dump. * Falls back to each error's top-level `message` field, and ultimately to * the full JSON representation if no messages can be extracted. */ export declare function extractGraphQLErrorMessages(errors: any[] | undefined): string | undefined; export declare function errorHandler(api: string): (error: unknown, requestId?: string) => unknown;