import { IUserRouteConfig } from '../types'; export declare type SubscribeFn = (v: IUserRouteConfig[]) => void; export declare class Route { private _pagesDir; private _unwatch; private _event; constructor(pagesDir: string); getRoutes(): Promise; subscribe(listener: SubscribeFn): void; private _getRoutes; private _createWatcher; }