import { Injector, type HttpOptions, type MiddlewarePromise, MiddlewareCompositeWithPriority } from '@akala/core'; import { CommandProcessor, type StructuredParameters } from '../model/processor.js'; import type { Command, Configuration, ConfigurationWithAuth } from '../metadata/index.js'; import { Container } from '../model/container.js'; import { type HandlerResult } from '../protocol-handler.js'; import { Metadata } from '../index.browser.js'; export declare class HttpClient extends CommandProcessor { static fromUrl(url: string | URL): HttpClient; static handler(protocol: 'http' | 'https'): (url: URL) => Promise>; handle(origin: Container, command: Command, param: StructuredParameters): MiddlewarePromise; static buildCall(config: Metadata.Configurations, resolveUrl: (s: string) => string, auth: unknown, ...param: unknown[]): HttpOptions; private readonly injector; constructor(injector?: Injector); } export declare const authMiddleware: MiddlewareCompositeWithPriority<[{ mode: unknown; } & Configuration, HttpOptions, unknown], "break">; export interface HttpConfiguration extends ConfigurationWithAuth { method: string; route: string; contentType?: HttpOptions['contentType']; type?: HttpOptions['type']; } interface HttpAuthConfiguration extends Configuration { required?: boolean; mode: 'basic' | 'body' | 'bearer' | { type: 'query' | 'header' | 'cookie'; name: string; }; } export {};