export declare const commonDefs = "\n scalar JSON\n input RiseSetter {\n field: String\n path: String!\n }\n"; export interface RiseDirectiveOptions { name: string; baseURL: string; apiType: 'rest' | 'gql'; headers: Record; forwardheaders: string[]; contenttype: string | undefined; ErrorClass: new (...args: any[]) => Error; } export declare function getReqHeaders(riseDirective: RiseDirectiveOptions, options: any, context: any): { [x: string]: any; }; export declare function processResHeaders(response: any, context: any): void; export declare class RestError extends Error { code: number; errors: any; constructor(message?: string, code?: number, errors?: null); } export declare function mapKeysDeep(obj: any, keyMap?: Record): any; /** * Parses responseKeyFormat from string to object format * @param responseKeyFormat - The response key format, can be string (JSON) or object * @returns Parsed key mapping object or empty object if parsing fails */ export declare function parseResponseKeyFormat(responseKeyFormat: string | Record | undefined): Record; export declare function reverseKeyValue(obj: Record): Record; export declare function renameFieldsInQuery(query: string, renameMap: { [key: string]: string; }): string; export declare function parseJsonOrThrow(response: any, ErrorClass: any): Promise; export declare function deriveGqlErrorStatus(errors?: any[]): number;