import type { MunaConfig } from "./muna"; export interface RequestInput { /** * Request path. */ path: string; /** * Request method. * Defaults to `GET`. */ method?: string; /** * Request headers. */ headers?: Record; /** * Request body. */ body?: Record; } /** * Muna API client. */ export declare class MunaClient { /** * Muna access key. */ readonly accessKey: string | undefined; /** * Muna API URL. */ readonly url: string; private readonly auth; private static readonly URL; /** * Create a Muna API client. * @param config Muna client configuration. */ constructor({ accessKey, url }: MunaConfig); /** * Make a request to a REST endpoint. */ request({ path, method, headers, body }: RequestInput): Promise; /** * Make a request to a REST endpoint and consume the response as a server-sent events stream. */ stream({ path, method, headers, body }: RequestInput): AsyncGenerator; } export declare class MunaAPIError extends Error { /** * Request status code. */ readonly status: number; constructor(message: string, status: number); }