@jorsek/ezd-client
Version:
28 lines (27 loc) • 1.22 kB
TypeScript
import { INavTree, IPageContent, ISection } from "../Types";
import { Resource } from "./Resource";
interface INavTreeParams {
path: string;
clearCache?: boolean;
otherParams?: object;
}
export declare class Content extends Resource {
private nav_tree_cache;
getPageTitle(): Promise<string>;
getBannerText(): Promise<string[]>;
getSectionsAndVersions(): Promise<string>;
getRootSection(): Promise<ISection>;
getSections(path?: string): Promise<ISection[]>;
getAllGroups(path?: string): Promise<Record<string, ISection>>;
getNamedGroup(group_name: string): Promise<ISection[]>;
getContentForId(resource_id: string, version?: string): Promise<IPageContent>;
getContentForResourceId(resource_id: string, version?: string): Promise<IPageContent>;
getRedirect(path: string): Promise<string>;
getContent(path?: string, audiences?: string[], extra_args?: {}): Promise<IPageContent>;
getPrintContent(path?: string, audiences?: string[]): Promise<string>;
clearNavTreeCache(): void;
getNavTree(path: string): Promise<INavTree>;
getNavTree2({ path, clearCache, otherParams }: INavTreeParams): Promise<INavTree>;
private fixMetadata;
}
export {};