import * as T from "../_types"; import { Server } from "../server"; /** * @description * Emulates node js http server in the browser by hijacking links and forms. * * @param server The @rill/http server to attach to. * @param initialize If false the initial request will be skipped. */ export declare function attach(server: Server, initialize?: boolean): Server; /** * @description * Like native window.fetch but requests from a local mock server. * * @param server The @rill/http server to request from. * @param url The url to request. * @param options Fetch style options object (with method, redirect, etc). */ export declare function fetch(server: Server, url: string | T.FetchOptions, options?: T.FetchOptions): Promise;