import * as React from 'react'; import { Config, Layout, Include, Post, Category, Collection, ComponentType } from '.'; export declare type Loader = () => Promise; export declare type ContentListener = (url: string, content: ComponentType) => void; export declare class Paramorph { readonly config: Config; readonly layouts: HashMap; readonly includes: HashMap; readonly posts: HashMap; readonly categories: HashMap; readonly tags: HashMap; readonly collections: HashMap; readonly layoutLoaders: HashMap; readonly includeLoaders: HashMap; readonly contentLoaders: HashMap; readonly content: HashMap>; readonly contentListeners: ContentListener[]; constructor(config: Config); addLayout(layout: Layout): void; addInclude(include: Include): void; addCollection(collection: Collection): void; addPost(post: Post): void; addLayoutLoader(name: string, loader: Loader): void; loadLayout(name: string): Promise; addIncludeLoader(name: string, loader: Loader): void; loadInclude(name: string): Promise; addContentLoader(url: string, loader: Loader): void; loadContent(url: string): Promise; addContentListener(listener: ContentListener): void; removeContentListener(listener: ContentListener): void; getCrumbs(post: Post): Post[][]; private getPostOfUrl; private getCategoryOfTitle; private notifyContentListeners; } export default Paramorph; export interface HashMap { [key: string]: T | undefined; }