import { EventEmitter2 as EventEmitter } from 'eventemitter2';
/**
 * The fetch event fires when your app receives an HTTP request
 * @hidden
 * @event #fetch
 * @type {FetchEvent}
 * @property {FetchEvent} event
 */
/**
 * @hidden
 */
export declare class FetchEvent {
    type: any;
    request: any;
    callback: any;
    respondWithEntered: boolean;
    constructor(type: any, init: any, callback: any);
    /**
     * respondWith callback
     * @callback respondWithCallback
     * @param {Response} The HTTP response to reply with
     */
    /**
     * Registers a function to generate a response for this event
     * @param {respondWithCallback} fn
     */
    respondWith(fn: any): void;
}
/**
 * @hidden
 */
export declare const emitter: EventEmitter;
/**
 * @hidden
 */
export declare function addEventListener(name: any, fn: any): void;
/**
 * @hidden
 */
export declare function fireFetchEvent(url: any, req: any, body: any, callback: any): any;
/**
 * @hidden
 */
export declare function dispatchEvent(event: any): void;
