import type { Metadata } from 'grpc-web'; import { type ServiceLocator } from './config'; /** Build grpc-web Metadata including Authorization, domain and application headers. */ export declare function buildMetadata(extra?: Metadata): Promise; /** * Create a typed grpc-web client given the generated constructor. * The constructor signature is typically (hostname: string, credentials: null, options: object) */ export declare function createGrpcClient(serviceId: string, Ctor: new (hostname: string, credentials: null, options: { [key: string]: any; }) => TClient, opts?: { withCredentials?: boolean; format?: 'text' | 'binary'; endpointOverride?: string; serviceLocator?: ServiceLocator; }): TClient;