import * as dntShim from "../../_dnt.shims.js"; import { Earthstar } from "../../deps.js"; import { IReplicaServerExtension } from "./extension.js"; /** * - `path`: The path to accept HTTP sync requests from, e.g. `/earthstar-api/v2`. Make sure to set this if you're using other extensions which handle requests, as by default this is set to `/`. */ interface ExtensionSyncOpts { path?: string; } /** An extension which enables synchronisation over HTTP. */ export declare class ExtensionSyncHttp implements IReplicaServerExtension { private syncer; private path; constructor(opts: ExtensionSyncOpts); register(peer: Earthstar.Peer): Promise; handler(req: dntShim.Request): Promise; } export {};