import * as grpc from '@grpc/grpc-js'; import _ from 'lodash'; import { ActionEndpoint, ApiServiceGrpcActionConfig, ExtendedActionEndpoint, ExtendedGrpcActionEndpoint, ExtendedRestActionEndpoint, Headers, ProxyHeadersFunctionExtra } from '../models/common'; import { Dict, GatewayContext } from '../models/context'; import { AppErrorConstructor } from '../models/error'; export declare function isExtendedActionEndpoint(endpoint: ActionEndpoint): endpoint is ExtendedActionEndpoint; export declare function isExtendedGrpcActionEndpoint(endpoint: ActionEndpoint): endpoint is ExtendedGrpcActionEndpoint; export declare function isExtendedRestActionEndpoint(endpoint: ActionEndpoint): endpoint is ExtendedRestActionEndpoint; export declare function getKeys(obj: T): (keyof T)[]; /** * This function should only use to sanitize debugHeaders that are creating in our code */ export declare function sanitizeDebugHeaders(debugHeaders: Headers): _.Omit; export declare function getHeadersFromMetadata(metadata: Record, prefix?: string): Record; export declare function handleError(ErrorConstructor: AppErrorConstructor, error: unknown, ctx: Context, message: string, extra?: Dict): void; export declare const getProxyHeadersArgs: (serviceName: string, actionName: string, grpcConfig?: ApiServiceGrpcActionConfig | undefined) => ProxyHeadersFunctionExtra;