1 | type WalineAbort = (reason?: any) => void;
|
2 |
|
3 | interface WalineCommentCountOptions {
|
4 | /**
|
5 | * Waline 服务端地址
|
6 | *
|
7 | * Waline server url
|
8 | */
|
9 | serverURL: string;
|
10 | /**
|
11 | * 评论数 CSS 选择器
|
12 | *
|
13 | * Comment count CSS selector
|
14 | *
|
15 | * @default '.waline-comment-count'
|
16 | */
|
17 | selector?: string;
|
18 | /**
|
19 | * 需要获取的默认路径
|
20 | *
|
21 | * Path to be fetched by default
|
22 | *
|
23 | * @default window.location.pathname
|
24 | */
|
25 | path?: string;
|
26 | /**
|
27 | * 错误提示消息所使用的语言
|
28 | *
|
29 | * Language of error message
|
30 | *
|
31 | * @default navigator.language
|
32 | */
|
33 | lang?: string;
|
34 | }
|
35 | declare const commentCount: ({ serverURL, path, selector, lang, }: WalineCommentCountOptions) => WalineAbort;
|
36 |
|
37 | declare const version: string;
|
38 |
|
39 | export { WalineCommentCountOptions, commentCount, version };
|