@arsedizioni/ars-utils 22.6.86 → 22.6.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
  6. package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
  8. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
  9. package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
  10. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  11. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
  12. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
  14. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
  18. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
  20. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
  22. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
  24. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
  25. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
  26. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
  27. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
  28. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
  29. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
  30. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
  32. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
  34. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
  36. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
  38. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
  40. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
  42. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
  44. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  45. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
  46. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
  47. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
  48. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
  49. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
  50. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
  51. package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
  52. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  53. package/package.json +1 -1
  54. package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
  55. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
  56. package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
  57. package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
  58. package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
  59. package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
  60. package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
  61. package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
  62. package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
  63. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
  64. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
  65. package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
  66. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
  67. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
  68. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
  69. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
  70. package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
  71. package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
  72. package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
  73. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
  74. package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
  75. package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
  76. package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
  77. package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
  78. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
  79. package/types/arsedizioni-ars-utils.d.ts +1 -3
@@ -1,220 +1,213 @@
1
- import { Folder, ApiResult } from '@arsedizioni/ars-utils/core';
2
- import * as rxjs from 'rxjs';
3
- import { BehaviorSubject } from 'rxjs';
4
- import * as _angular_core from '@angular/core';
5
- import { OnDestroy } from '@angular/core';
6
- import { BreakpointObserver } from '@angular/cdk/layout';
7
- import { MatSidenav } from '@angular/material/sidenav';
8
- import { MatTree } from '@angular/material/tree';
9
-
10
- interface ChapterParentInfo {
11
- id: string;
12
- name: string;
1
+ import { ApiResult, Folder } from "@arsedizioni/ars-utils/core";
2
+ import { BreakpointObserver } from "@angular/cdk/layout";
3
+ import * as i0 from "@angular/core";
4
+ import { OnDestroy } from "@angular/core";
5
+ import { MatSidenav } from "@angular/material/sidenav";
6
+ import { MatTree } from "@angular/material/tree";
7
+ import { BehaviorSubject } from "rxjs";
8
+ export interface ChapterParentInfo {
9
+ id: string;
10
+ name: string;
13
11
  }
14
- interface Chapter extends Folder {
15
- parents?: ChapterParentInfo[];
12
+ export interface Chapter extends Folder {
13
+ parents?: ChapterParentInfo[];
16
14
  }
17
- interface ChapterBag {
18
- chapter: Chapter;
19
- data: string;
20
- hits: number;
15
+ export interface ChapterBag {
16
+ chapter: Chapter;
17
+ data: string;
18
+ hits: number;
21
19
  }
22
- interface ChapterTree extends Chapter {
23
- subFolders: ChapterTree[];
24
- path: string;
20
+ export interface ChapterTree extends Chapter {
21
+ subFolders: ChapterTree[];
22
+ path: string;
25
23
  }
26
-
27
- interface HelpViewerDialogData {
28
- id?: string;
24
+ export interface HelpViewerDialogData {
25
+ id?: string;
29
26
  }
30
- declare class IndexInfo {
31
- id: string;
32
- parent?: IndexInfo;
33
- name: string;
34
- itemsCount?: number;
35
- children?: IndexInfo[];
27
+ export declare class IndexInfo {
28
+ id: string;
29
+ parent?: IndexInfo;
30
+ name: string;
31
+ itemsCount?: number;
32
+ children?: IndexInfo[];
36
33
  }
37
- declare class IndexNode extends IndexInfo {
38
- expandable: boolean;
39
- level: number;
40
- constructor(item: IndexInfo, level: number);
34
+ export declare class IndexNode extends IndexInfo {
35
+ expandable: boolean;
36
+ level: number;
37
+ constructor(item: IndexInfo, level: number);
41
38
  }
42
- declare class IndexTreeDataSource implements OnDestroy {
43
- dataChange: BehaviorSubject<IndexInfo[]>;
44
- get data(): IndexInfo[];
45
- ngOnDestroy(): void;
46
- /**
47
- * Initialises the data source with a flat list of root nodes.
48
- * @param data - Array of root `IndexInfo` items to display in the tree.
49
- */
50
- initialize(data: IndexInfo[]): void;
51
- /**
52
- * Recursively searches the tree for a node with the given id.
53
- * @param node - The node to start from, or `null`/`undefined` to search from the root.
54
- * @param id - The id of the node to find.
55
- * @returns The matching `IndexInfo`, or `undefined` if not found.
56
- */
57
- findNode(node: IndexInfo | undefined | null, id: string): IndexInfo | undefined;
58
- /**
59
- * Removes the node with the given id from the tree.
60
- * @param id - The id of the node to remove.
61
- */
62
- removeNode(id: string): void;
63
- /**
64
- * Inserts a new node at the beginning of its parent's children, or at the root.
65
- * @param node - The `IndexInfo` node to insert.
66
- */
67
- insertNode(node: IndexInfo): void;
68
- /**
69
- * Renames a node in the tree.
70
- * @param id - The id of the node to rename.
71
- * @param name - The new display name.
72
- */
73
- renameNode(id: string, name: string): void;
74
- /**
75
- * Re-emits the current data to all subscribers, triggering a tree refresh.
76
- */
77
- update(): void;
78
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<IndexTreeDataSource, never>;
79
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
39
+ export declare class IndexTreeDataSource implements OnDestroy {
40
+ dataChange: BehaviorSubject<IndexInfo[]>;
41
+ get data(): IndexInfo[];
42
+ ngOnDestroy(): void;
43
+ /**
44
+ * Initialises the data source with a flat list of root nodes.
45
+ * @param data - Array of root `IndexInfo` items to display in the tree.
46
+ */
47
+ initialize(data: IndexInfo[]): void;
48
+ /**
49
+ * Recursively searches the tree for a node with the given id.
50
+ * @param node - The node to start from, or `null`/`undefined` to search from the root.
51
+ * @param id - The id of the node to find.
52
+ * @returns The matching `IndexInfo`, or `undefined` if not found.
53
+ */
54
+ findNode(node: IndexInfo | undefined | null, id: string): IndexInfo | undefined;
55
+ /**
56
+ * Removes the node with the given id from the tree.
57
+ * @param id - The id of the node to remove.
58
+ */
59
+ removeNode(id: string): void;
60
+ /**
61
+ * Inserts a new node at the beginning of its parent's children, or at the root.
62
+ * @param node - The `IndexInfo` node to insert.
63
+ */
64
+ insertNode(node: IndexInfo): void;
65
+ /**
66
+ * Renames a node in the tree.
67
+ * @param id - The id of the node to rename.
68
+ * @param name - The new display name.
69
+ */
70
+ renameNode(id: string, name: string): void;
71
+ /**
72
+ * Re-emits the current data to all subscribers, triggering a tree refresh.
73
+ */
74
+ update(): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<IndexTreeDataSource, never>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
80
77
  }
81
- declare class HelpViewerComponent {
82
- readonly indexPane: _angular_core.Signal<MatSidenav>;
83
- private readonly destroyRef;
84
- private readonly dialogRef;
85
- protected readonly dialogData: HelpViewerDialogData;
86
- private readonly dialogService;
87
- private readonly helpService;
88
- protected readonly breakpointObserver: BreakpointObserver;
89
- protected readonly busy: _angular_core.WritableSignal<boolean>;
90
- protected readonly page: _angular_core.WritableSignal<string>;
91
- private indexId;
92
- private indexPaneClosed;
93
- protected indexNode: IndexInfo | undefined;
94
- private readonly history;
95
- protected readonly canGoBack: _angular_core.Signal<boolean>;
96
- private tree;
97
- readonly matTree: _angular_core.Signal<MatTree<IndexNode, IndexNode>>;
98
- /** Provides the level of a flat node to the tree component. */
99
- protected readonly levelAccessor: (node: IndexNode) => number;
100
- /** Flat list of all tree nodes used as the tree data source. */
101
- protected readonly flatNodes: _angular_core.WritableSignal<IndexNode[]>;
102
- private folders?;
103
- protected hasChild: (_: number, _node: IndexNode) => boolean;
104
- constructor();
105
- /**
106
- * Handle filter pane visibility
107
- */
108
- private handleFilterPaneVisibility;
109
- /**
110
- * Shows or hides the index pane when the user clicks the toggle button.
111
- * Also tracks the user's explicit intent so the pane is not auto-reopened.
112
- */
113
- protected toggleIndexPane(): void;
114
- /**
115
- * Closes the help viewer dialog.
116
- */
117
- protected close(): void;
118
- /**
119
- * Loads the table of contents from the help service and populates the tree.
120
- */
121
- protected getToc(): void;
122
- /**
123
- * Intercepts anchor clicks inside the help page and navigates to the referenced chapter.
124
- * @param e - The click `MouseEvent` from the page content area.
125
- * @returns `false` to prevent default browser navigation.
126
- */
127
- protected gotoChapter(e: MouseEvent): boolean;
128
- /**
129
- * Searches the folder list for a node matching the given id.
130
- * @param id - The id of the folder to locate.
131
- * @returns The matching `IndexInfo`, or `undefined` if not found.
132
- */
133
- private findFolder;
134
- /**
135
- * Expands the tree node that corresponds to the currently selected chapter,
136
- * and all its ancestor nodes.
137
- */
138
- private expandCurrentFolder;
139
- /**
140
- * Recursively flattens a nested IndexInfo tree into a depth-first ordered array of IndexNodes.
141
- * @param items - Root-level nodes to flatten.
142
- * @param level - Current depth level.
143
- */
144
- private flattenNodes;
145
- /**
146
- * Retrieves and displays a help chapter by id.
147
- * Optionally scrolls to an anchor or pixel offset after loading.
148
- * @param id - Chapter id, optionally followed by an anchor (`id#anchor`).
149
- * @param position - Pixel scroll offset to restore (default `0`, meaning top).
150
- */
151
- protected getChapter(id: string, position?: number): void;
152
- /**
153
- * Scrolls the help content to a named anchor or a numeric pixel offset.
154
- * @param anchor - Named anchor (`<a name="…">`) to scroll to, if any.
155
- * @param position - Fallback pixel offset (default `0`).
156
- */
157
- protected gotoPosition(anchor: string | undefined, position?: number): void;
158
- /**
159
- * Returns the current vertical scroll offset of the help content scroller.
160
- * @returns The `scrollTop` value in pixels, or `0` if the element is not found.
161
- */
162
- protected getPosition(): number;
163
- /**
164
- * Scrolls the help content scroller to the specified pixel offset.
165
- * @param position - The vertical pixel offset to scroll to.
166
- */
167
- protected setPosition(position: number): void;
168
- /**
169
- * Navigates back to the previous chapter in the browsing history.
170
- */
171
- protected back(): void;
172
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HelpViewerComponent, never>;
173
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HelpViewerComponent, "ng-component", never, {}, {}, never, never, true, never>;
78
+ export declare class HelpViewerComponent {
79
+ readonly indexPane: import("@angular/core").Signal<MatSidenav>;
80
+ private readonly destroyRef;
81
+ private readonly dialogRef;
82
+ protected readonly dialogData: HelpViewerDialogData;
83
+ private readonly dialogService;
84
+ private readonly helpService;
85
+ protected readonly breakpointObserver: BreakpointObserver;
86
+ protected readonly busy: import("@angular/core").WritableSignal<boolean>;
87
+ protected readonly page: import("@angular/core").WritableSignal<string>;
88
+ private indexId;
89
+ private indexPaneClosed;
90
+ protected indexNode: IndexInfo | undefined;
91
+ private readonly history;
92
+ protected readonly canGoBack: import("@angular/core").Signal<boolean>;
93
+ private tree;
94
+ readonly matTree: import("@angular/core").Signal<MatTree<IndexNode, IndexNode>>;
95
+ /** Provides the level of a flat node to the tree component. */
96
+ protected readonly levelAccessor: (node: IndexNode) => number;
97
+ /** Flat list of all tree nodes used as the tree data source. */
98
+ protected readonly flatNodes: import("@angular/core").WritableSignal<IndexNode[]>;
99
+ private folders?;
100
+ protected hasChild: (_: number, _node: IndexNode) => boolean;
101
+ constructor();
102
+ /**
103
+ * Handle filter pane visibility
104
+ */
105
+ private handleFilterPaneVisibility;
106
+ /**
107
+ * Shows or hides the index pane when the user clicks the toggle button.
108
+ * Also tracks the user's explicit intent so the pane is not auto-reopened.
109
+ */
110
+ protected toggleIndexPane(): void;
111
+ /**
112
+ * Closes the help viewer dialog.
113
+ */
114
+ protected close(): void;
115
+ /**
116
+ * Loads the table of contents from the help service and populates the tree.
117
+ */
118
+ protected getToc(): void;
119
+ /**
120
+ * Intercepts anchor clicks inside the help page and navigates to the referenced chapter.
121
+ * @param e - The click `MouseEvent` from the page content area.
122
+ * @returns `false` to prevent default browser navigation.
123
+ */
124
+ protected gotoChapter(e: MouseEvent): boolean;
125
+ /**
126
+ * Searches the folder list for a node matching the given id.
127
+ * @param id - The id of the folder to locate.
128
+ * @returns The matching `IndexInfo`, or `undefined` if not found.
129
+ */
130
+ private findFolder;
131
+ /**
132
+ * Expands the tree node that corresponds to the currently selected chapter,
133
+ * and all its ancestor nodes.
134
+ */
135
+ private expandCurrentFolder;
136
+ /**
137
+ * Recursively flattens a nested IndexInfo tree into a depth-first ordered array of IndexNodes.
138
+ * @param items - Root-level nodes to flatten.
139
+ * @param level - Current depth level.
140
+ */
141
+ private flattenNodes;
142
+ /**
143
+ * Retrieves and displays a help chapter by id.
144
+ * Optionally scrolls to an anchor or pixel offset after loading.
145
+ * @param id - Chapter id, optionally followed by an anchor (`id#anchor`).
146
+ * @param position - Pixel scroll offset to restore (default `0`, meaning top).
147
+ */
148
+ protected getChapter(id: string, position?: number): void;
149
+ /**
150
+ * Scrolls the help content to a named anchor or a numeric pixel offset.
151
+ * @param anchor - Named anchor (`<a name="…">`) to scroll to, if any.
152
+ * @param position - Fallback pixel offset (default `0`).
153
+ */
154
+ protected gotoPosition(anchor: string | undefined, position?: number): void;
155
+ /**
156
+ * Returns the current vertical scroll offset of the help content scroller.
157
+ * @returns The `scrollTop` value in pixels, or `0` if the element is not found.
158
+ */
159
+ protected getPosition(): number;
160
+ /**
161
+ * Scrolls the help content scroller to the specified pixel offset.
162
+ * @param position - The vertical pixel offset to scroll to.
163
+ */
164
+ protected setPosition(position: number): void;
165
+ /**
166
+ * Navigates back to the previous chapter in the browsing history.
167
+ */
168
+ protected back(): void;
169
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpViewerComponent, never>;
170
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelpViewerComponent, "ng-component", never, {}, {}, never, never, true, never>;
174
171
  }
175
-
176
- declare class HelpService {
177
- private readonly httpClient;
178
- private readonly dialogService;
179
- private serviceUri;
180
- /**
181
- * Initialises the service with the back-end base URI.
182
- * Must be called once during application bootstrap before any other method.
183
- * @param serviceUri - Base URL of the help service (e.g. `'https://api.example.com'`).
184
- */
185
- initialize(serviceUri: string): void;
186
- /**
187
- * Retrieves the HTML content and metadata of a help chapter.
188
- * @param id - The chapter id.
189
- * @param query - Optional search query to highlight within the chapter content.
190
- * @returns An observable that emits `ApiResult<ChapterBag>`.
191
- */
192
- getChapter(id: string, query?: string | undefined): rxjs.Observable<ApiResult<ChapterBag>>;
193
- /**
194
- * Retrieves metadata (title, path, etc.) for a help chapter without its content.
195
- * @param id - The chapter id.
196
- * @returns An observable that emits `ApiResult<Chapter>`.
197
- */
198
- getChapterInfo(id: string): rxjs.Observable<ApiResult<Chapter>>;
199
- /**
200
- * Retrieves a raw repository file by id.
201
- * @param id - The repository file id.
202
- * @returns An observable that emits `ApiResult<unknown>`.
203
- */
204
- getRepo(id: string): rxjs.Observable<ApiResult<unknown>>;
205
- /**
206
- * Retrieves the table of contents as a hierarchical `IndexInfo` tree.
207
- * @returns An observable that emits `ApiResult<IndexInfo>`.
208
- */
209
- getToc(): rxjs.Observable<ApiResult<IndexInfo>>;
210
- /**
211
- * Opens the help viewer dialog, optionally pre-navigated to a specific chapter.
212
- * @param id - The chapter id to open (default: `'1'`, the root chapter).
213
- */
214
- show(id?: string): void;
215
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HelpService, never>;
216
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
217
- }
218
-
219
- export { HelpService, HelpViewerComponent, IndexInfo, IndexNode, IndexTreeDataSource };
220
- export type { Chapter, ChapterBag, ChapterParentInfo, ChapterTree, HelpViewerDialogData };
172
+ export declare class HelpService {
173
+ private readonly httpClient;
174
+ private readonly dialogService;
175
+ private serviceUri;
176
+ /**
177
+ * Initialises the service with the back-end base URI.
178
+ * Must be called once during application bootstrap before any other method.
179
+ * @param serviceUri - Base URL of the help service (e.g. `'https://api.example.com'`).
180
+ */
181
+ initialize(serviceUri: string): void;
182
+ /**
183
+ * Retrieves the HTML content and metadata of a help chapter.
184
+ * @param id - The chapter id.
185
+ * @param query - Optional search query to highlight within the chapter content.
186
+ * @returns An observable that emits `ApiResult<ChapterBag>`.
187
+ */
188
+ getChapter(id: string, query?: string | undefined): import("rxjs").Observable<ApiResult<ChapterBag>>;
189
+ /**
190
+ * Retrieves metadata (title, path, etc.) for a help chapter without its content.
191
+ * @param id - The chapter id.
192
+ * @returns An observable that emits `ApiResult<Chapter>`.
193
+ */
194
+ getChapterInfo(id: string): import("rxjs").Observable<ApiResult<Chapter>>;
195
+ /**
196
+ * Retrieves a raw repository file by id.
197
+ * @param id - The repository file id.
198
+ * @returns An observable that emits `ApiResult<unknown>`.
199
+ */
200
+ getRepo(id: string): import("rxjs").Observable<ApiResult<unknown>>;
201
+ /**
202
+ * Retrieves the table of contents as a hierarchical `IndexInfo` tree.
203
+ * @returns An observable that emits `ApiResult<IndexInfo>`.
204
+ */
205
+ getToc(): import("rxjs").Observable<ApiResult<IndexInfo>>;
206
+ /**
207
+ * Opens the help viewer dialog, optionally pre-navigated to a specific chapter.
208
+ * @param id - The chapter id to open (default: `'1'`, the root chapter).
209
+ */
210
+ show(id?: string): void;
211
+ static ɵfac: i0.ɵɵFactoryDeclaration<HelpService, never>;
212
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
213
+ }