import * as akala from '@akala/core'; import { type simpleRequest } from '../router.js'; export type workerHandler = (req: simpleRequest, ev: FetchEvent) => Promise; export declare class Router extends akala.MiddlewareComposite<[Request, FetchEvent]> { procesUpdateFound(ev: Event): Promise; processPush(ev: PushEvent): Promise; processInstall(ev: InstallEvent & ExtendableEvent): Promise; processActivate(ev: Event): Promise; private installMiddleware; private activateMiddleware; private pushMiddleware; private updateFoundMiddleware; constructor(); install(...handlers: ((evt: ServiceWorkerRegistrationEventMap['install']) => Promise)[]): this; push(...handlers: ((evt: ServiceWorkerRegistrationEventMap['push']) => Promise)[]): this; updateFound(...handlers: ((evt: Event) => Promise)[]): this; activate(...handlers: ((evt: Event) => Promise)[]): this; 'checkout'(path: string, ...handlers: workerHandler[]): this; 'connect'(path: string, ...handlers: workerHandler[]): this; 'copy'(path: string, ...handlers: workerHandler[]): this; 'delete'(path: string, ...handlers: workerHandler[]): this; 'get'(path: string, ...handlers: workerHandler[]): this; 'head'(path: string, ...handlers: workerHandler[]): this; 'lock'(path: string, ...handlers: workerHandler[]): this; 'merge'(path: string, ...handlers: workerHandler[]): this; 'mkactivity'(path: string, ...handlers: workerHandler[]): this; 'mkcalendar'(path: string, ...handlers: workerHandler[]): this; 'mkcol'(path: string, ...handlers: workerHandler[]): this; 'move'(path: string, ...handlers: workerHandler[]): this; 'notify'(path: string, ...handlers: workerHandler[]): this; 'options'(path: string, ...handlers: workerHandler[]): this; 'patch'(path: string, ...handlers: workerHandler[]): this; 'post'(path: string, ...handlers: workerHandler[]): this; 'prop'(path: string, ...handlers: workerHandler[]): this; 'find'(path: string, ...handlers: workerHandler[]): this; 'proppatch'(path: string, ...handlers: workerHandler[]): this; 'purge'(path: string, ...handlers: workerHandler[]): this; 'put'(path: string, ...handlers: workerHandler[]): this; 'report'(path: string, ...handlers: workerHandler[]): this; 'search'(path: string, ...handlers: workerHandler[]): this; 'subscribe'(path: string, ...handlers: workerHandler[]): this; 'trace'(path: string, ...handlers: workerHandler[]): this; 'unlock'(path: string, ...handlers: workerHandler[]): this; 'unsubscribe'(path: string, ...handlers: workerHandler[]): this; } export declare const router: Router;