rasengan
Version:
The modern React Framework
11 lines (10 loc) • 530 B
TypeScript
import { RouterProps, PageComponent, MDXPageComponent } from '../types.js';
import { RouterComponent } from '../interfaces.js';
/**
* This function adds metadata to a router
* @param option
* @returns
*/
export declare const defineRouter: (option: RouterProps) => (Router: new () => RouterComponent) => Promise<RouterComponent>;
export declare const convertMDXPageToPageComponent: (MDXPage: MDXPageComponent) => Promise<PageComponent>;
export declare const isMDXPage: (page: MDXPageComponent | PageComponent<any>) => boolean;