import { MatsuriError } from './MatsuriError.js'; interface FetcherResult> { data: T | undefined; error: MatsuriError | undefined; } type AuthTokenHeader = "Authorization" | "X-Access-Token" | "x-authorization" | "X-M2m-Access-Token"; interface FetcherOptions { method?: "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "OPTIONS" | "HEAD"; token?: string; body?: RequestInit["body"]; fetch?: (info: RequestInfo, init?: RequestInit) => Promise; authTokenHeader?: AuthTokenHeader; } declare const fetcher: >(url: string, options?: FetcherOptions) => Promise>; declare const bearerFetcher: >(token: string, url: string, options?: FetcherOptions) => Promise>; declare const fetcherThrows: (url: string, options?: FetcherOptions) => Promise; export { type AuthTokenHeader, type FetcherOptions, type FetcherResult, bearerFetcher, fetcher, fetcherThrows };