@embedpdf-editor/vue3-chapter-viewer 0.1.0

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.
@@ -0,0 +1,519 @@
1
+ import { AnnotationCapability } from '@embedpdf/plugin-annotation';
2
+ import { BasePluginConfig } from '@embedpdf/core';
3
+ import { ChapterTreeNode } from '../vue/chapter-tree';
4
+ import { default as ChapterTreePanel } from '../components/ChapterTreePanel.vue';
5
+ import { ChapterViewerCatalog } from '../vue/chapter-tree';
6
+ import { Command } from '@embedpdf/plugin-commands';
7
+ import { ComponentOptionsMixin } from 'vue';
8
+ import { ComponentProvideOptions } from 'vue';
9
+ import { DefineComponent } from 'vue';
10
+ import { EmbedPDF } from '@embedpdf/core/vue';
11
+ import { default as PdfChapterViewport } from '../components/PdfChapterViewport.vue';
12
+ import { PdfEngine } from '@embedpdf/models';
13
+ import { PluginBatchRegistration } from '@embedpdf/core';
14
+ import { PublicProps } from 'vue';
15
+ import { ReactNode } from 'react';
16
+ import { Rect } from '@embedpdf/models';
17
+ import { SelectionCapability } from '@embedpdf/plugin-selection';
18
+ import { ToolbarSchema } from '@embedpdf/plugin-ui';
19
+ import { UISchema } from '@embedpdf/plugin-ui';
20
+ import { useCapability } from '@embedpdf/core/vue';
21
+ import { usePdfiumEngine } from '@embedpdf/engines/vue';
22
+
23
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
24
+
25
+ declare type __VLS_Props = {
26
+ viewerProps: ChapterPdfViewerProps;
27
+ };
28
+
29
+ /** 对当前选区应用 PDF 划线/高亮,支持按类型自定义颜色、粗细与偏移 */
30
+ export declare function applySelectionMarkup(documentId: string, kind: SelectionMarkupKind, annotation: AnnotationCapability, selection: SelectionCapability, styles?: MarkupStylesConfig): boolean;
31
+
32
+ declare interface BookmarkMarkerUiConfig {
33
+ /** 自定义图标;提供时仅渲染图标,无默认蓝色背景按钮 */
34
+ renderIcon?: (ctx: {
35
+ bookmark: ParagraphBookmark;
36
+ }) => ReactNode;
37
+ iconSize?: number;
38
+ }
39
+
40
+ declare interface BookmarkMarkerUiConfig_2 {
41
+ /** 自定义图标;提供时仅渲染图标,无默认蓝色圆角背景 */
42
+ renderIcon?: (ctx: {
43
+ bookmark: ParagraphBookmark;
44
+ }) => unknown;
45
+ iconSize?: number;
46
+ }
47
+
48
+ export declare function buildParagraphBookmarkAnchor(chapterId: string, localPageIndex: number, rectsPdfCoord: Rect[], virtualPage?: {
49
+ globalPageIndex: number;
50
+ globalPageNumber: number;
51
+ }): ParagraphBookmark['anchor'];
52
+
53
+ /** 选区浮窗 card 内置操作 */
54
+ declare type BuiltinSelectionToolbarAction = 'highlight' | 'underline' | 'squiggly' | 'strikeout' | 'note';
55
+
56
+ /**
57
+ * 回调型:把决策交给业务侧异步函数(最常用)。
58
+ */
59
+ export declare class CallbackPasswordProvider implements IPasswordProvider {
60
+ private readonly cb;
61
+ constructor(cb: (chapter: ChapterDescriptor, attempt: number) => Promise<string | null>);
62
+ resolvePassword(chapter: ChapterDescriptor, attempt: number): Promise<string | null>;
63
+ }
64
+
65
+ export declare interface ChapterDescriptor {
66
+ /** 业务唯一 ID;同时复用作 documentManager 的 documentId */
67
+ chapterId: string;
68
+ title: string;
69
+ /**
70
+ * 该章节在「整本」中的全局页范围(闭区间,业务页码,可 1-based 也可 0-based,
71
+ * 只要全局一致即可)。允许相邻章节重叠:`[a, b]` ∩ `[c, d]` ≠ ∅。
72
+ */
73
+ globalPageRange: [number, number];
74
+ /**
75
+ * 该章节 PDF 文件内部的本地页范围(0-based 闭区间)。
76
+ * 必须满足:`localPageRange[1] - localPageRange[0] === globalPageRange[1] - globalPageRange[0]`
77
+ */
78
+ localPageRange: [number, number];
79
+ /**
80
+ * PDF 来源。可省略:须在 ChapterManager 配置 `chapterPdfLoader` 中统一加载。
81
+ */
82
+ source?: ChapterSource;
83
+ encrypted?: boolean;
84
+ /**
85
+ * 仅当 OverlapOwnerStrategy = 'explicit' 时使用:
86
+ * 该章节"声明拥有"的全局页号集合。
87
+ */
88
+ ownedGlobalPages?: number[];
89
+ }
90
+
91
+ /**
92
+ * 章节级加载状态。区别于 `@embedpdf/core` 的 DocumentState:
93
+ * - `idle` = manifest 已注册但尚未触发 open
94
+ * - `password-required` = 用户取消/密码错误后停在等密码态
95
+ */
96
+ export declare type ChapterLoadStatus = 'idle' | 'loading' | 'loaded' | 'error' | 'password-required' | 'closed';
97
+
98
+ export declare interface ChapterManifest {
99
+ chapters: ChapterDescriptor[];
100
+ /**
101
+ * 整本去重后的总页数。当未提供时由 VirtualPageMap 自动推导
102
+ * (取所有章节 globalPageRange 的并集大小)。
103
+ */
104
+ totalGlobalPages?: number;
105
+ }
106
+
107
+ /**
108
+ * Backend-supplied chapter contract.
109
+ *
110
+ * 一个 PDF 整体被后端按章节切成若干独立 PDF 文件;前端将它们组装成一条
111
+ * 连续滚动流。相邻章节在 `globalPageRange` 上**允许重叠**(业务上下章
112
+ * 经常各含一个过渡页),由 OverlapResolver 决定每个全局页归属的「owner
113
+ * chapter」,渲染与标注都落在 owner 上以保持唯一性。
114
+ */
115
+ /** 章节 PDF 解析结果 */
116
+ export declare type ChapterPdfPayload = {
117
+ url: string;
118
+ } | {
119
+ buffer: ArrayBuffer;
120
+ };
121
+
122
+ export declare const ChapterPdfViewer: typeof __VLS_export;
123
+
124
+ /** React / Vue 共用的章节阅读器顶层 props(框架专属字段在各自入口扩展) */
125
+ export declare interface ChapterPdfViewerProps {
126
+ engine: PdfEngine;
127
+ editorOptions: Omit<CreatePdfChapterEditorOptions, 'features'> & {
128
+ notes?: PdfChapterEditorNotesConfig;
129
+ bookmarks?: PdfChapterEditorBookmarksConfig;
130
+ };
131
+ features?: ChapterViewerFeaturesConfig;
132
+ className?: string;
133
+ viewportClassName?: string;
134
+ }
135
+
136
+ /**
137
+ * 章节 PDF 来源(由业务在 manifest 中提供):
138
+ * - `url`:直接打开该地址
139
+ * - `buffer`:已取回的 PDF 二进制
140
+ * - `load`:按章节自定义拉取(鉴权、本地 FS 等)
141
+ */
142
+ export declare type ChapterSource = {
143
+ url: string;
144
+ } | {
145
+ buffer: ArrayBuffer;
146
+ } | {
147
+ load: () => Promise<ChapterPdfPayload>;
148
+ };
149
+
150
+ export { ChapterTreeNode }
151
+
152
+ export { ChapterTreePanel }
153
+
154
+ export { ChapterViewerCatalog }
155
+
156
+ /** 章节渲染器集成功能开关(与 demo 默认样式对齐) */
157
+ export declare interface ChapterViewerFeaturesConfig {
158
+ /** 划线/高亮 */
159
+ markup?: {
160
+ enabled?: boolean;
161
+ styles?: MarkupStylesConfig;
162
+ };
163
+ /** 段落书签(含悬停添加) */
164
+ bookmarks?: {
165
+ enabled?: boolean;
166
+ marker?: BookmarkMarkerUiConfig_2;
167
+ hover?: HoverBookmarkUiConfig_2;
168
+ };
169
+ /** 笔记 */
170
+ notes?: {
171
+ enabled?: boolean;
172
+ marker?: NoteMarkerUiConfig;
173
+ };
174
+ /** 选区浮窗 */
175
+ selectionToolbar?: SelectionToolbarConfig;
176
+ /** 缩放 */
177
+ zoom?: ChapterViewerZoomConfig;
178
+ }
179
+
180
+ declare interface ChapterViewerZoomConfig {
181
+ /** 是否启用 pinch/滑块缩放容器,默认 true */
182
+ enabled?: boolean;
183
+ min?: number;
184
+ max?: number;
185
+ initial?: number;
186
+ }
187
+
188
+ /**
189
+ * 创建带默认划线/笔记/书签/选区 card 的章节编辑器插件包。
190
+ * 传入的 `features` 与默认值浅合并。
191
+ */
192
+ export declare function createChapterViewerEditor(options: CreatePdfChapterEditorOptions): PdfChapterEditorBundle;
193
+
194
+ export declare function createChapterViewerEditorOptions(input: CreateChapterViewerEditorOptionsInput): Omit<CreatePdfChapterEditorOptions, 'features'>;
195
+
196
+ export declare type CreateChapterViewerEditorOptionsInput = {
197
+ manifest: ChapterManifest;
198
+ chapterPdfLoader?: IChapterPdfLoader;
199
+ bookmarks: PdfChapterEditorBookmarksConfig;
200
+ notes: PdfChapterEditorNotesConfig;
201
+ };
202
+
203
+ declare interface CreateEditorUiSchemaOptions {
204
+ /** 默认全开 */
205
+ enabledModes?: EditorModeId[];
206
+ customOperations?: OperationSpec[];
207
+ /** 合并进最终 schema 的额外 toolbars / menus 等 */
208
+ extend?: Partial<Pick<UISchema, 'toolbars' | 'menus' | 'sidebars' | 'modals' | 'selectionMenus'>>;
209
+ }
210
+
211
+ /**
212
+ * 组装章节 PDF 编辑器所需的插件注册列表与 UI Schema。
213
+ * 不挂载 `@embedpdf/plugin-scroll`;滚动由 `ChapterScrollPlugin` + `ChapterScroller` 负责。
214
+ */
215
+ export declare function createPdfChapterEditor(options: CreatePdfChapterEditorOptions): PdfChapterEditorBundle;
216
+
217
+ export declare interface CreatePdfChapterEditorOptions {
218
+ manifest: ChapterManifest;
219
+ overlapStrategy?: OverlapOwnerStrategy;
220
+ passwordProvider?: IPasswordProvider;
221
+ /** 章节未在 manifest 中写 source 时,由此加载 PDF */
222
+ chapterPdfLoader?: IChapterPdfLoader;
223
+ notes?: PdfChapterEditorNotesConfig;
224
+ bookmarks?: PdfChapterEditorBookmarksConfig;
225
+ toolbar?: PdfChapterEditorToolbarConfig;
226
+ /** 传给 chapter-manager;manifest 就绪后预取前 N 章 */
227
+ prefetchChapters?: number;
228
+ /** 为 false 时不拉取 CDN 默认图章库(@embedpdf/default-stamps) */
229
+ loadDefaultStampLibrary?: boolean;
230
+ unloadTimeoutMs?: number;
231
+ /** 传给 chapter-scroll */
232
+ placeholderPageHeight?: number;
233
+ placeholderPageWidth?: number;
234
+ /** 合并进 Commands 插件(如 mode / annotation / form 等) */
235
+ commands?: Record<string, Command>;
236
+ /**
237
+ * 章节阅读器集成功能(划线/笔记/书签/选区 card / 缩放)。
238
+ * 默认 demo 样式;各子项可单独关闭或扩展。
239
+ */
240
+ features?: ChapterViewerFeaturesConfig;
241
+ }
242
+
243
+ /** 与 demo 对齐的默认集成功能 */
244
+ export declare const DEFAULT_CHAPTER_VIEWER_FEATURES: ChapterViewerFeaturesConfig;
245
+
246
+ /** 与 snippet 主工具栏 mode tabs 对齐的编辑模式 */
247
+ declare type EditorModeId = 'view' | 'annotate' | 'shapes' | 'insert' | 'form' | 'redact';
248
+
249
+ /** Snippet-derived secondary toolbars for Annotate / Shapes / Insert / Form / Redact */
250
+ declare const editorSecondaryToolbars: Record<string, ToolbarSchema>;
251
+
252
+ export { EmbedPDF }
253
+
254
+ declare interface HoverBookmarkUiConfig {
255
+ renderAddIcon?: () => ReactNode;
256
+ iconSize?: number;
257
+ }
258
+
259
+ declare interface HoverBookmarkUiConfig_2 {
260
+ /** 悬停行末「添加书签」自定义图标;无背景 */
261
+ renderAddIcon?: () => unknown;
262
+ iconSize?: number;
263
+ }
264
+
265
+ /**
266
+ * 全局章节 PDF 加载器:当 `ChapterDescriptor.source` 未提供 url/buffer/load 时使用。
267
+ * 适合统一走业务 API、鉴权下载等场景。
268
+ */
269
+ export declare interface IChapterPdfLoader {
270
+ loadPdf(chapter: ChapterDescriptor): Promise<ChapterPdfPayload>;
271
+ }
272
+
273
+ /**
274
+ * 章节加密的抽象接口:当某章节首次或重试加载因密码失败时,
275
+ * `ChapterManagerPlugin` 会向 provider 询问密码。
276
+ *
277
+ * 返回 `null` 表示用户/系统放弃,对应章节进入 `password-required` 状态。
278
+ */
279
+ declare interface IPasswordProvider {
280
+ /**
281
+ * @param chapter 失败章节描述
282
+ * @param attempt 已经尝试次数(0 = 首次),可用于实现"输错三次锁定"等策略
283
+ */
284
+ resolvePassword(chapter: ChapterDescriptor, attempt: number): Promise<string | null>;
285
+ /** 可选:同步快查缓存,避免显式 await */
286
+ getCachedPassword?(chapterId: string): string | null;
287
+ }
288
+
289
+ /** 单种划线的样式(颜色、粗细、垂直偏移,PDF 点) */
290
+ declare interface MarkupKindStyle {
291
+ /** 描边/填充色,如 #facc15 */
292
+ color?: string;
293
+ /** 线宽(下划线/删除线等),PDF 点 */
294
+ thickness?: number;
295
+ /** 相对字形底边的垂直偏移,正值向下(PDF 点) */
296
+ offsetY?: number;
297
+ opacity?: number;
298
+ }
299
+
300
+ declare type MarkupStylesConfig = Partial<Record<SelectionMarkupKind, MarkupKindStyle>>;
301
+
302
+ /**
303
+ * 一条附注(note)的位置锚点。
304
+ * - `rectsPdfCoord` 来自 selection.getHighlightRectsForPage 的 PDF 坐标系
305
+ * - `endAnchor` 用于"末尾图标"渲染:取选区最后一行 right 边缘
306
+ * - `noteId` 由开发者回调返回(服务端 ID),插件本身不生成
307
+ */
308
+ export declare interface NoteAnchor {
309
+ noteId: string;
310
+ chapterId: string;
311
+ globalPageIndex: number;
312
+ globalPageNumber: number;
313
+ localPageIndex: number;
314
+ rectsPdfCoord: Rect[];
315
+ endAnchor: {
316
+ x: number;
317
+ y: number;
318
+ };
319
+ selectedText: string;
320
+ /** 用户填写的笔记正文(由业务持久化) */
321
+ content?: string;
322
+ }
323
+
324
+ export declare interface NoteCallbacks {
325
+ /** 初次加载已有附注 */
326
+ loadNotes?: () => Promise<NoteAnchor[]>;
327
+ /**
328
+ * 内置创建:持久化后返回 noteId。
329
+ * 与 onRequestCreateNote 二选一(至少配置其一)。
330
+ */
331
+ onCreateNote?: (draft: NoteDraft) => Promise<{
332
+ noteId: string;
333
+ } | null>;
334
+ /**
335
+ * 自定义创建弹窗:仅发出事件,由宿主 complete(noteId)。
336
+ * 配置后划词/默认流程不再调用 onCreateNote。
337
+ */
338
+ onRequestCreateNote?: (payload: NoteCreateRequestPayload) => void;
339
+ /** 自定义编辑:传出 noteId */
340
+ onRequestEditNote?: (noteId: string, anchor: NoteAnchor) => void;
341
+ onUpdateNote?: (note: NoteAnchor) => Promise<void>;
342
+ onDeleteNote?: (noteId: string) => Promise<void>;
343
+ /** 点击编辑且未配置 onRequestEditNote 时回退 */
344
+ onActivateNote?: (noteId: string, anchor: NoteAnchor) => void;
345
+ }
346
+
347
+ /** 自定义笔记创建:宿主打开 UI 后调用 complete(noteId) */
348
+ declare interface NoteCreateRequestPayload {
349
+ draft: NoteDraft;
350
+ complete: (noteId: string) => Promise<void>;
351
+ }
352
+
353
+ /** 一个尚未持久化的草稿(开发者回调拿到的) */
354
+ export declare type NoteDraft = Omit<NoteAnchor, 'noteId'>;
355
+
356
+ declare interface NoteMarkerMenuActionCtx {
357
+ note: NoteAnchor;
358
+ onEdit: () => void;
359
+ onDelete: () => void;
360
+ }
361
+
362
+ declare interface NoteMarkerUiConfig {
363
+ /** 自定义笔记标识图标;提供时无圆形背景 */
364
+ renderIcon?: (ctx: {
365
+ note: NoteAnchor;
366
+ }) => unknown;
367
+ /** 完全自定义编辑/删除区域;不提供则使用默认 card */
368
+ renderMenuActions?: (ctx: NoteMarkerMenuActionCtx) => unknown;
369
+ iconSize?: number;
370
+ /** 笔记高亮底色的 CSS 颜色,默认 rgba(245,158,11,0.08) */
371
+ highlightColor?: string;
372
+ }
373
+
374
+ declare interface OperationHandlerContext {
375
+ documentId: string | null;
376
+ chapterId: string | null;
377
+ }
378
+
379
+ /**
380
+ * 收集开发者自定义操作,并把它们注入到 secondary toolbar 的 items 里。
381
+ * Commands 插件侧的 register 由宿主在引擎初始化时根据 spec.handler 完成。
382
+ */
383
+ declare class OperationRegistry {
384
+ private readonly specs;
385
+ register(operation: OperationSpec): void;
386
+ registerAll(operations: OperationSpec[]): void;
387
+ list(): readonly OperationSpec[];
388
+ /**
389
+ * 返回注入了 customOperations 的 toolbar 副本(不修改原始 fragment)。
390
+ */
391
+ buildToolbars(): typeof editorSecondaryToolbars;
392
+ }
393
+
394
+ /** 自定义操作挂载到某条 secondary toolbar */
395
+ declare interface OperationSpec {
396
+ id: string;
397
+ modeId: EditorModeId;
398
+ /** 对应 {@link editorSecondaryToolbars} 的 key */
399
+ toolbarSlot: 'annotation-toolbar' | 'shapes-toolbar' | 'insert-toolbar' | 'form-toolbar' | 'redaction-toolbar';
400
+ /** 插入到某 toolbar item 之后;缺省则追加到 tools group 末尾 */
401
+ position?: {
402
+ after?: string;
403
+ before?: string;
404
+ };
405
+ commandId: string;
406
+ icon?: string;
407
+ i18nKey?: string;
408
+ label?: string;
409
+ categories?: string[];
410
+ /** 注册到 Commands 插件时的执行体(由宿主在 createPdfChapterEditor 里注入) */
411
+ handler?: (ctx: OperationHandlerContext) => void | Promise<void>;
412
+ }
413
+
414
+ /**
415
+ * 决定相邻章节在重叠页上谁拥有该页(owner)。
416
+ * - first-wins / last-wins:按 manifest 顺序的先到/后到
417
+ * - explicit:依赖 `ChapterDescriptor.ownedGlobalPages`
418
+ * - custom:开发者完全接管
419
+ */
420
+ declare type OverlapOwnerStrategy = {
421
+ kind: 'first-wins';
422
+ } | {
423
+ kind: 'last-wins';
424
+ } | {
425
+ kind: 'explicit';
426
+ } | {
427
+ kind: 'custom';
428
+ resolve: (globalPage: number, candidates: ChapterDescriptor[]) => string;
429
+ };
430
+
431
+ export declare interface ParagraphBookmark {
432
+ id: string;
433
+ label: string;
434
+ /** 业务可选元数据;插件直接存不解释 */
435
+ metadata?: Record<string, unknown>;
436
+ anchor: {
437
+ chapterId: string;
438
+ localPageIndex: number;
439
+ /** 创建时虚拟页索引(与附注一致,避免 toGlobal 映射偏差) */
440
+ globalPageIndex?: number;
441
+ /** 创建时业务页号 */
442
+ globalPageNumber?: number;
443
+ /** PDF 坐标系包围盒(多行选区时为各行并集) */
444
+ rectPdfCoord: Rect;
445
+ /** 各行 PDF 矩形(划词书签时与选区高亮一致) */
446
+ rectsPdfCoord?: Rect[];
447
+ /** 书签图标锚点(通常为选区末行右下角,PDF 坐标) */
448
+ markerAnchor?: {
449
+ x: number;
450
+ y: number;
451
+ };
452
+ };
453
+ createdAt: number;
454
+ }
455
+
456
+ declare interface ParagraphBookmarkCallbacks {
457
+ /** 初次加载已有书签 */
458
+ load?: () => Promise<ParagraphBookmark[]>;
459
+ /** 任意变更(新增 / 删除 / 改名)后回调,便于持久化 */
460
+ persist?: (entries: ParagraphBookmark[]) => Promise<void>;
461
+ /**
462
+ * 用户请求删除书签:由外部完成持久化删除。
463
+ * 返回 true 时插件会从渲染层移除该书签。
464
+ */
465
+ onRequestRemove?: (bookmark: ParagraphBookmark) => Promise<boolean>;
466
+ /** 书签已从插件内存移除后通知(便于 UI 收尾) */
467
+ onRemoveSuccess?: (bookmarkId: string) => void;
468
+ }
469
+
470
+ declare interface ParagraphBookmarkPluginConfig extends BasePluginConfig {
471
+ callbacks?: ParagraphBookmarkCallbacks;
472
+ ui?: BookmarkMarkerUiConfig;
473
+ hover?: HoverBookmarkUiConfig;
474
+ }
475
+
476
+ export declare interface PdfChapterEditorBookmarksConfig {
477
+ callbacks: NonNullable<ParagraphBookmarkPluginConfig['callbacks']>;
478
+ }
479
+
480
+ declare interface PdfChapterEditorBundle {
481
+ plugins: PluginBatchRegistration<any, any, any, any>[];
482
+ uiSchema: UISchema;
483
+ operationRegistry: OperationRegistry;
484
+ }
485
+
486
+ export declare interface PdfChapterEditorNotesConfig {
487
+ callbacks: NoteCallbacks;
488
+ }
489
+
490
+ declare interface PdfChapterEditorToolbarConfig extends CreateEditorUiSchemaOptions {
491
+ }
492
+
493
+ export { PdfChapterViewport }
494
+
495
+ /** 划线类型 */
496
+ declare type SelectionMarkupKind = 'highlight' | 'underline' | 'squiggly' | 'strikeout';
497
+
498
+ declare interface SelectionToolbarConfig {
499
+ /** 是否显示默认 card,默认 true */
500
+ enabled?: boolean;
501
+ /** 隐藏部分内置按钮 */
502
+ hiddenBuiltinActions?: BuiltinSelectionToolbarAction[];
503
+ /** 扩展操作(由宿主在 buildSelectionMenu 或 onExtraAction 中处理) */
504
+ extraActions?: SelectionToolbarExtraAction[];
505
+ }
506
+
507
+ /** 扩展选区操作 */
508
+ declare interface SelectionToolbarExtraAction {
509
+ id: string;
510
+ label: string;
511
+ /** 排序权重,越小越靠前(在内置 markup 之后、note 之前) */
512
+ order?: number;
513
+ }
514
+
515
+ export { useCapability }
516
+
517
+ export { usePdfiumEngine }
518
+
519
+ export { }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EACzB,sBAAsB,EACtB,gCAAgC,EAChC,+BAA+B,EAC/B,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,QAAQ,EACR,aAAa,GACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,qCAAqC,EACrC,6BAA6B,EAC7B,2BAA2B,EAC3B,+BAA+B,EAC/B,aAAa,EACb,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,oCAAoC,CAAC"}