import * as i0 from '@angular/core'; import { ElementRef, Type, WritableSignal, Signal, InjectionToken, Provider, OnInit, OnChanges, AfterViewInit, EventEmitter, OnDestroy, PipeTransform, NgModuleFactory, TemplateRef, ApplicationRef } from '@angular/core'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as _angular_platform_browser from '@angular/platform-browser'; import * as i1 from '@angular/common'; import * as i2 from '@angular/forms'; import * as i3 from '@angular/router'; import { ActivatedRouteSnapshot, Router, Routes } from '@angular/router'; import * as _docgeni_template from '@docgeni/template'; declare abstract class DocgeniBuiltInComponent { protected elementRef: ElementRef; private classes; get hostElement(): HTMLElement; setAttribute(qualifiedName: string, value: string): void; updateHostClass(classes: string[]): this; addClass(className: string): void; removeClass(className: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface BuiltInComponentDef { selector: string; component: Type; } declare class DocgeniCodeCopyComponent extends DocgeniBuiltInComponent { private copier; readonly icon: i0.WritableSignal<"copy" | "check">; title: string; ariaLabel: string; private readonly iconEffect; private renderIcon; onCopy(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type DocgeniAlertType = 'primary' | 'info' | 'success' | 'warning' | 'danger'; declare class DocgeniAlertComponent extends DocgeniBuiltInComponent { readonly type: i0.InputSignal; private readonly typeClassEffect; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type DocgeniLabelType = 'primary' | 'danger' | 'warning' | 'info' | ''; declare class DocgeniLabelComponent extends DocgeniBuiltInComponent { readonly type: i0.InputSignal; private readonly typeClassEffect; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type DocgeniTabsMode = 'simple' | 'code-group'; interface DocgeniTabItem { label: string; contentElement: Element; } declare class DocgeniTabsComponent extends DocgeniBuiltInComponent { private cdr; private platformId; private isBrowser; readonly tabs: i0.WritableSignal; readonly activeIndex: i0.WritableSignal; readonly mode: i0.InputSignal; private readonly modeClassEffect; private readonly parseTabsEffect; selectTab(index: number): void; private parseTabsFromHost; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DocgeniBuiltInModule { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare function setBuiltInComponents(components: BuiltInComponentDef[]): void; declare function getBuiltInComponents(): BuiltInComponentDef[]; declare function addBuiltInComponents(components: BuiltInComponentDef[]): void; declare const BUILT_IN_COMPONENTS: ({ selector: string; component: typeof DocgeniTabsComponent; } | { selector: string; component: typeof DocgeniLabelComponent; } | { selector: string; component: typeof DocgeniAlertComponent; } | { selector: string; component: typeof DocgeniCodeCopyComponent; })[]; /** * 用户可以配置的 Library 属性 */ interface DocgeniLibrary { name: string; abbrName?: string; rootDir: string; apiMode?: 'compatible' | 'manual' | 'automatic'; categories?: { id?: string; title: string; locales?: { [key: string]: { title: string; }; }; }[]; include?: string | string[]; exclude?: string | string[]; docDir?: string; apiDir?: string; examplesDir?: string; labels?: { [id: string]: { text: string; color: string; }; } | { id: string; text: string; color: string; }[]; } interface Locale { key: string; name: string; } interface HeadingLink { id: string; type: string; name: string; /** level of the section */ level?: number; } type DocItemToc = 'menu' | 'content' | 'hidden' | false; interface DocItem { id: string; title: string; subtitle?: string; summary?: string; path: string; channelPath?: string; contentPath?: string; originPath?: string; content?: string; order?: number; hidden?: boolean; locales?: { [key: string]: { title: string; summary?: string; content?: string; }; }; toc?: DocItemToc; headings?: HeadingLink[]; ancestors?: CategoryItem[]; } interface ComponentDocItem extends DocItem { examples?: string[]; importSpecifier?: string; overview?: boolean; api?: boolean; category?: string; label?: { text: string; color: string; }; } interface CategoryItem { id?: string; title: string; subtitle?: string; path?: string; items?: Array; locales?: { [key: string]: { title: string; subtitle?: string; }; }; toc?: DocItemToc; ancestors?: CategoryItem[]; } interface ChannelItem { id: string; title: string; path?: string; fullPath?: string; isExternal?: boolean; lib?: string; locales?: { [key: string]: { title: string; }; }; items?: Array; } type NavigationItem = ChannelItem & CategoryItem & DocItem & ComponentDocItem; interface HeroAction { text: string; link: string; btnType?: string; btnShape?: 'round' | 'square'; } interface HomeDocMeta { title: string; hero: { title: string; description: string; banner: string | string[]; actions: HeroAction[]; backgroundColor?: string; }; features: { icon: string; title: string; description: string; }[]; contentPath: string; } type DocgeniMode = 'full' | 'lite'; type DocgeniRenderMode = 'csr' | 'ssg' | 'ssr'; declare enum DocgeniTheme { light = "light", dark = "dark", system = "system" } interface DocgeniNavItem { /** Title for nav item **/ title: string; /** Route path for nav item **/ path: string; /** Whether is external link **/ isExternal?: boolean; /** Lib name for libs **/ lib?: string; /** Locales **/ locales?: { [key: string]: { title: string; }; }; } interface DocgeniAlgoliaConfig { appId?: string; apiKey: string; indexName: string; } interface DocgeniSitemapConfig { host?: string; } interface DocgeniConfig { /** Title of documentation, e.g: Docgeni **/ title?: string; /** Description of documentation **/ description?: string; /** Mode of documentation, full mode contains nav, home page, lite mode only contains menu and doc viewers **/ mode?: DocgeniMode; /** Theme, angular navbar style and default style **/ theme?: 'default' | 'angular'; /** Base href of documentation, default is / **/ baseHref?: string; /** Logo url*/ logoUrl?: string; /** Public dir, default is .docgeni/public **/ publicDir?: string; /** Repo url*/ repoUrl?: string; /** Docs dir, default is 'docs' **/ docsDir?: string; /** Site default dir .docgeni/site **/ siteDir?: string; /** Site default dir .docgeni/components **/ componentsDir?: string; /** Site output dir, default is dist/docgeni-site **/ outputDir?: string; /** Angular demo site name in angular.json **/ siteProjectName?: string; /** Angular libraries **/ libs?: DocgeniLibrary[]; /** Navigations for menu and nav **/ navs?: DocgeniNavItem[]; /** Locales **/ locales?: Locale[]; /** Default locale **/ defaultLocale?: string; /** Enable themes */ switchTheme?: boolean; /** footer content **/ footer?: string; /** algolia config */ algolia?: DocgeniAlgoliaConfig; /** default toc, default is content **/ toc?: DocItemToc; /** sitemap config */ sitemap?: DocgeniSitemapConfig; /** Progress */ progress?: boolean; /** Site render mode, default is csr */ renderMode?: DocgeniRenderMode; } interface DocgeniSiteConfig { /** Title of documentation, e.g: Docgeni **/ title: string; /** Heading of documentation, e.g: Doc Generator, default is same as title **/ heading?: string; /** Description of documentation **/ description?: string; /** Mode of documentation, full mode contains nav, home page, lite mode only contains menu and doc viewers **/ mode?: 'full' | 'lite'; /** Theme, angular navbar style and default style **/ theme?: 'default' | 'angular'; /** Base href of documentation, default is / **/ baseHref?: string; /** Heads of documentation*/ heads?: []; /** Logo url*/ logoUrl?: string; /** Repo url*/ repoUrl?: string; /** Home meta **/ homeMeta?: HomeDocMeta; /** Locales **/ locales?: Locale[]; /** Default locale **/ defaultLocale?: string; /** Enable themes */ switchTheme?: boolean; /** footer content **/ footer?: string; /** algolia config */ algolia?: DocgeniAlgoliaConfig; /** Site render mode, default is csr */ renderMode?: DocgeniRenderMode; } interface NgModuleInfo { /** Name of the NgModule. */ name: string; /** * Import specifier that resolves to this module. e.g. alib/button */ importSpecifier: string; } interface NgDefaultExportInfo { providers: string; imports: string; declarations: string; } interface ExampleSourceFile { name: string; highlightedPath: string; highlightedContent?: string; content?: string; } interface LiveExample { /** Key of the example. alib-button-basic-example */ key: string; /** Name of the example. basic or advance */ name: string; /** Title of the example. */ title: string; /** Background color of the example. */ background?: string; /** Remove padding for the example when compact is true. */ compact?: boolean; /** Class name for styles of the example. */ className?: string; /** Name of the example component. */ componentName: string; /** List of source files which are all of the example. */ sourceFiles: ExampleSourceFile[]; /** List of additional components which are part of the example. */ additionalComponents?: string[]; /** List of additional files which are part of the example. */ additionalFiles?: string[]; /** NgModule that declares this example. */ module: NgModuleInfo; } interface PropertyType { name: string; options?: (string | number)[] | null; kindName?: string; } interface PropertyDeclaration { name: string; aliasName?: string; kind: 'Input' | 'Output' | 'ContentChild' | 'ContentChildren'; type: string | PropertyType; description?: string; default?: string; tags?: Record; } interface MethodDeclaration { name?: string; params?: Record; parameters?: { name: string; type: string; description: string; comment?: string; }[]; returnValue?: { type: string; description: string; }; description?: string | null; } interface ApiDeclaration { type: 'directive' | 'component' | 'service' | 'interface' | 'class' | 'pipe'; name: string; className: string; selector: string; exportAs: string; description?: string; properties?: Array; methods?: Array; } declare const CONFIG_TOKEN: InjectionToken; declare const DEFAULT_CONFIG: DocgeniSiteConfig; declare class GlobalContext { config: DocgeniSiteConfig; private http; private location; locale: string; navs: NavigationItem[]; docItems: NavigationItem[]; homeMeta?: HomeDocMeta; owner: string; repo: string; theme: WritableSignal; isDarkTheme: Signal; private isBrowser; get isDefaultLocale(): boolean; constructor(); private getLocaleKey; private setup; getLocalKeyFromUrl(): string | undefined; setLocale(locale: string): void; private getTheme; setTheme(theme: DocgeniTheme): void; getNowTimestamp(): number; initialize(): Promise; getAssetsContentPath(path: string): string; sortDocItems(navs: NavigationItem[]): NavigationItem[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class NavigationService { private global; readonly channel: i0.WritableSignal; readonly docItem: i0.WritableSignal; readonly docPages: i0.WritableSignal<{ pre: NavigationItem; next: NavigationItem; } | null>; /** Responsive layout, sidebar default is hide */ readonly showSidebar: i0.WritableSignal; readonly navs: i0.Signal; readonly docItems: i0.Signal; readonly channels: i0.Signal; getChannel(path: string): ChannelItem; getDocItemByPath(path: string): NavigationItem; selectChannelByPath(path: string): ChannelItem | null; private normalizeRoutePath; clearChannel(): void; selectDocItem(path: string): void; getChannelFirstDocItem(): DocItem | null; searchFirstDocItem(items?: NavigationItem[]): DocItem; getNavFirstDocItem(nav: NavigationItem): DocItem; toggleSidebar(): void; resetShowSidebar(): void; private buildChannels; private isCategoryItem; private isDocItem; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ChannelResolver { private navigationService; resolve(route: ActivatedRouteSnapshot): Observable | Promise | ChannelItem; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ExampleLoadResult { moduleType: Type; componentType: Type; example: LiveExample; } declare abstract class ExampleLoader { enableIvy: boolean; abstract load(exampleName: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class PageTitleService { private bodyTitle; private globalContext; private innerTitle; get title(): string; set title(title: string); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class RouterResetService { private router; private global; private navigationService; resetRoutes(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const DOCGENI_INITIALIZER_PROVIDERS: Provider[]; declare function initializeDocgeniSite(globalContext: GlobalContext, routerResetService: RouterResetService): () => Promise; declare class SidebarComponent implements OnInit, OnChanges { global: GlobalContext; private router; private activatedRoute; isSidebar: boolean; menus: NavigationItem[]; menuDisplayMap: Map; readonly initDisplay = true; ngOnInit(): void; toggle(menu: CategoryItem): void; private setMenuOpen; ngOnChanges(): void; private updateGroupsCollapseStates; private setMenuDisplay; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NavbarComponent implements OnInit { global: GlobalContext; navigationService: NavigationService; private elementRef; readonly showNav: i0.WritableSignal; ngOnInit(): void; toggleNavbar(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FooterComponent implements OnInit { private global; private elementRef; isHide: boolean; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ExampleTab { name: string; path: string; } declare class ExampleViewerComponent implements OnInit { private exampleLoader; private globalContext; private http; private stackblitzExampleService; readonly name: i0.InputSignal; readonly inline: i0.InputSignalWithTransform; /** Component type for the current example. */ exampleComponentType: Type; exampleModuleType: Type; example: i0.WritableSignal; showSource: boolean; exampleTabs: ExampleTab[]; selectedTab: ExampleTab; get enableIvy(): boolean; constructor(); private transformFileName; ngOnInit(): void; selectExampleTab(tab: ExampleTab): void; toggleSource(): void; openStackBlitz(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IconComponent implements OnInit, AfterViewInit { private elementRef; private domSanitizer; set iconName(name: string); ngOnInit(): void; ngAfterViewInit(): void; setSvg(name: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare abstract class ContentRenderer { private documentFetchSubscription; url: i0.InputSignal; content: i0.InputSignal; contentRendered: EventEmitter; abstract updateDocument(content: string): void; abstract showError(url: string, error: Error): void; protected http: HttpClient; constructor(); protected fetchDocument(url: string): void; protected destroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ContentViewerComponent extends ContentRenderer implements OnInit, OnDestroy { elementRef: ElementRef; private appRef; private injector; private viewContainerRef; private ngZone; private tocService; private cdr; private portalHosts; ngOnInit(): void; updateDocument(content: string): void; updateTableOfContents(docViewerContent: HTMLElement): void; private loadComponents; /** Show an error that occurred when fetching a document. */ showError(url: string, error: HttpErrorResponse): void; private clearLiveExamples; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DocHeaderComponent implements OnInit, OnDestroy { navigationService: NavigationService; global: GlobalContext; title: string; subtitle: string; ngOnInit(): void; toggleSidebar(event: Event): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type LabelType = 'primary' | 'danger' | 'warning' | 'info' | ''; declare class LabelComponent implements OnInit { private elementRef; private renderer; classList: string[]; set labelType(value: LabelType); ngOnInit(): void; private getBackgroundColor; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface TocLink { id: string; type: string; active: boolean; name: string; top: number; /** level of the section */ level: number; element?: HTMLHeadingElement; } declare class TocService { private document; private platformId; private viewportScroller; private isBrowser; private linksSubject$; private activeLinkSubject$; private destroyed$; private scrollContainer; highestLevel: number; get links$(): Observable; readonly links: i0.Signal; get activeLink$(): Observable; readonly activeLink: i0.Signal; constructor(); reset(): void; generateToc(docViewerContent: HTMLElement, scrollContainer?: string): void; initializeScrollContainer(scrollContainerSelector: string): void; onScroll(): void; scrollToAnchor(urlFragment: string): void; private getElementTop; private getScrollOffset; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class TableOfContentsComponent implements OnInit, OnDestroy { private router; private route; global: GlobalContext; private locationStrategy; tocService: TocService; readonly container: i0.InputSignal; readonly activeLink: i0.Signal; rootUrl: string; protected readonly hideToc: i0.WritableSignal; private destroyed; private urlFragment; constructor(); ngOnInit(): void; ngOnDestroy(): void; onLinkClick($event: Event, link: TocLink): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AssetsContentPathPipe implements PipeTransform { private globalContext; transform(path: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class CopierService { private textarea?; /** Copy the text value to the clipboard. */ copyText(text: string): boolean; /** * Creates a hidden textarea element, sets its value from `text` property, * and makes a selection on it. */ private createTextareaAndSelect; /** Remove the text area from the DOM. */ private removeFake; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class IsModeLitePipe implements PipeTransform { constructor(); transform(mode?: 'lite' | 'full'): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class IsModeFullPipe implements PipeTransform { constructor(); transform(mode?: 'lite' | 'full'): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class CopyComponent implements OnInit { private copier; icon: string; readonly dgCopy: i0.InputSignal; ngOnInit(): void; copy($event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SourceCodeComponent extends ContentRenderer implements OnInit { codeContent: i0.Signal | undefined>; textContent: i0.Signal; ngOnInit(): void; updateDocument(content: string): void; showError(url: string, error: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ExampleRendererComponent implements OnInit { private exampleLoader; /** Component type for the current example. */ componentType: i0.WritableSignal | undefined>; exampleModuleFactory: NgModuleFactory | null; name: i0.InputSignal; exampleModuleType: i0.InputSignal | null>; exampleComponentType: i0.InputSignal | undefined>; exampleLoadSuccess: EventEmitter; get enableIvy(): boolean; constructor(); ngOnInit(): void; load(name: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HighlightPipe implements PipeTransform { private domSanitizer; highlightTitle(keywords: string, title: string): string; transform(keywords: string, title: string): _angular_platform_browser.SafeHtml; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class LocalesSelectorComponent implements OnInit { global: GlobalContext; navigationService: NavigationService; private location; locale: string; isDropdownOpen: boolean; ngOnInit(): void; openDropdown(): void; closeDropdown(): void; selectLocale(locale: string): void; localeModelChange(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThemesSelectorComponent implements OnInit { global: GlobalContext; navigationService: NavigationService; cacheKey: string; isDropdownOpen: boolean; docgeniTheme: typeof DocgeniTheme; theme: DocgeniTheme; themesMap: { light: { key: DocgeniTheme; name: string; icon: string; }; dark: { key: DocgeniTheme; name: string; icon: string; }; system: { key: DocgeniTheme; name: string; icon: string; }; }; themes: { key: DocgeniTheme; name: string; icon: string; }[]; openDropdown(): void; closeDropdown(): void; ngOnInit(): void; setTheme(theme: DocgeniTheme): void; selectTheme(theme: DocgeniTheme): void; toggleTheme(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownMenuComponent { readonly isOpen: i0.WritableSignal; private dropdown; onMouseEnter(): void; onMouseLeave(event: MouseEvent): void; onClick(): void; open(): void; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LogoComponent implements OnInit { global: GlobalContext; private elementRef; private viewContainerRef; logoTemplate: TemplateRef; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IsComponentDocPipe implements PipeTransform { constructor(); transform(docItem: NavigationItem): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class IsNgContentChildKindPipe implements PipeTransform { constructor(); transform(kind: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class PropertyNamePipe implements PipeTransform { constructor(); transform(property: PropertyDeclaration): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare function translateByLocale(key: string, locale: string): string; declare class TranslatePipe implements PipeTransform { private global; transform(key: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class HeroActionClassPipe implements PipeTransform { constructor(); transform(action: HeroAction): string[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class DocMetaComponent implements OnChanges { protected readonly hideDocMeta: i0.WritableSignal; lastUpdatedTime: i0.WritableSignal; contributors: i0.WritableSignal; private http; private globalContext; private document; docItem: i0.InputSignal; constructor(); ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DocPagesLinksComponent implements OnInit { private globalContext; docPages: { pre: NavigationItem; next: NavigationItem; }; preRouterLink: string; nextRouterLink: string; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface SearchPageInfo { title: string; id: string; path: string; parent?: SearchPageInfo; } declare class SearchService { global: GlobalContext; private document; private allPages; readonly result: i0.WritableSignal; get hasAlgolia(): boolean; initSearch(searchSelector: string): void; search(keywords: string): void; private initAlgolia; private initInnerSearch; /** * Stop third-party/autocomplete Enter handling while IME is confirming text, * and re-emit `input` after composition so Algolia/docsearch can open. */ private bindImeEnterProtection; private generatePages; private searchPages; trackByFn(index: number, item: SearchPageInfo): string | number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SearchComponent implements AfterViewInit, OnDestroy { searchService: SearchService; private router; readonly searchText: i0.WritableSignal; readonly isFocus: i0.WritableSignal; private readonly composing; /** Suppress a trailing Enter that some browsers emit right after compositionend. */ private suppressEnter; private suppressEnterTimer; readonly hasSearchText: i0.Signal; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; focus(): void; blur(): void; onCompositionStart(): void; onCompositionEnd(event: CompositionEvent): void; onKeydown(event: KeyboardEvent): void; toRoute($event: Event, item: SearchPageInfo): void; private reset; private clearSuppressEnterTimer; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DropdownDirective { readonly isOpen: i0.WritableSignal; readonly menu: i0.Signal; private elementRef; onMouseEnter(): void; onMouseLeave(event: MouseEvent): void; close(): void; contains(node: Node): boolean; private open; private isMovingToMenu; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class DocgeniSharedModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ComponentViewerComponent implements OnInit { readonly docItem: i0.InputSignal; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ComponentEmptyComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DocViewerComponent implements OnInit { private route; private router; protected navigationService: NavigationService; private pageTitle; private tocService; readonly isSingle: i0.WritableSignal; readonly hasContentToc: i0.WritableSignal; /** Component type for the current example. */ exampleComponentType: Type | null; exampleModuleFactory: NgModuleFactory | null; readonly docItem: i0.WritableSignal<_docgeni_template.NavigationItem | null>; readonly docPages: i0.WritableSignal<{ pre: _docgeni_template.NavigationItem; next: _docgeni_template.NavigationItem; } | null>; tableOfContents: TableOfContentsComponent; constructor(); ngOnInit(): void; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DocViewerHomeComponent { private navigationService; private route; private router; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HomeComponent implements OnInit { global: GlobalContext; router: Router; navigationService: NavigationService; pageTitle: PageTitleService; hasHome: boolean; get bannerImgSrc(): string | false; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ActualRootComponent { global: GlobalContext; navigationService: NavigationService; private router; private url; sidebarMenus: i0.Signal; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class RootComponent { global: GlobalContext; navigationService: NavigationService; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ComponentOverviewComponent implements OnInit { contentUrl: string; tableOfContents: TableOfContentsComponent; protected componentViewer: ComponentViewerComponent; private global; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ComponentApiComponent implements OnInit { apiDeclarations: i0.WritableSignal; componentViewer: ComponentViewerComponent; private global; private http; private ngZone; private elementRef; private tocService; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ComponentExamplesComponent implements OnInit { get examples(): string[]; protected componentViewer: ComponentViewerComponent; protected navigationService: NavigationService; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ExampleIsolatedViewerComponent implements OnInit { name: i0.WritableSignal; private route; private pageTitle; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DocgeniPagesModule { appRef: ApplicationRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DocgeniTemplateModule { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare const routes: Routes; export { ActualRootComponent, AssetsContentPathPipe, BUILT_IN_COMPONENTS, CONFIG_TOKEN, ChannelResolver, ComponentApiComponent, ComponentEmptyComponent, ComponentExamplesComponent, ComponentOverviewComponent, ComponentViewerComponent, ContentViewerComponent, CopierService, CopyComponent, DEFAULT_CONFIG, DOCGENI_INITIALIZER_PROVIDERS, DocHeaderComponent, DocMetaComponent, DocPagesLinksComponent, DocViewerComponent, DocViewerHomeComponent, DocgeniBuiltInComponent, DocgeniBuiltInModule, DocgeniPagesModule, DocgeniSharedModule, DocgeniTemplateModule, DocgeniTheme, DropdownDirective, DropdownMenuComponent, ExampleIsolatedViewerComponent, ExampleLoader, ExampleRendererComponent, ExampleViewerComponent, FooterComponent, GlobalContext, HeroActionClassPipe, HighlightPipe, HomeComponent, IconComponent, IsComponentDocPipe, IsModeFullPipe, IsModeLitePipe, IsNgContentChildKindPipe, LabelComponent, LocalesSelectorComponent, LogoComponent, NavbarComponent, NavigationService, PageTitleService, PropertyNamePipe, RootComponent, RouterResetService, SearchComponent, SidebarComponent, SourceCodeComponent, TableOfContentsComponent, ThemesSelectorComponent, TranslatePipe, addBuiltInComponents, getBuiltInComponents, initializeDocgeniSite, routes, setBuiltInComponents, translateByLocale }; export type { ApiDeclaration, BuiltInComponentDef, CategoryItem, ChannelItem, ComponentDocItem, DocItem, DocItemToc, DocgeniAlgoliaConfig, DocgeniConfig, DocgeniLibrary, DocgeniMode, DocgeniNavItem, DocgeniRenderMode, DocgeniSiteConfig, DocgeniSitemapConfig, ExampleLoadResult, ExampleSourceFile, HeroAction, HomeDocMeta, LiveExample, Locale, MethodDeclaration, NavigationItem, NgDefaultExportInfo, NgModuleInfo, PropertyDeclaration, PropertyType }; //# sourceMappingURL=docgeni-template.d.ts.map