import { HttpHandler, HttpRequest, HttpResponse } from "@http4t/core/contract"; import { ErrorResponder } from "./util/ErrorResponder"; import { TabFinder } from "./util/tabs"; export declare class SendToTabHandler implements HttpHandler { private readonly findTab; constructor(findTab?: TabFinder); handle(request: HttpRequest): Promise; } /** * Routes requests from {@link FetchViaBackgroundScript} to the appropriate tabs * * Depends on the tabs running a content script which has called {@link startContentScriptListener} */ export declare function startBackgroundListener(http?: HttpHandler, onError?: ErrorResponder): void; //# sourceMappingURL=background.d.ts.map