fuc-new/doc/node_modules/@vuepress/plugin-comment/lib/client/components/GiscusComment.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

63 lines
2.1 KiB
TypeScript

import * as vue from 'vue';
import { VNode } from 'vue';
import { G as GiscusRepo, a as GiscusMapping, b as GiscusTheme, c as GiscusInputPosition } from '../giscus-DkqKwsTo.js';
declare const SUPPORTED_LANGUAGES: readonly ["ar", "be", "bg", "ca", "cs", "da", "de", "en", "eo", "es", "eu", "fa", "fr", "gr", "hbs", "he", "hu", "id", "it", "ja", "kh", "ko", "nl", "pl", "pt", "ro", "ru", "th", "tr", "uk", "uz", "vi", "zh-CN", "zh-HK", "zh-TW"];
type BooleanString = '0' | '1';
type GiscusLang = (typeof SUPPORTED_LANGUAGES)[number];
type GiscusLoading = 'eager' | 'lazy';
interface GiscusProps {
id?: string | undefined;
repo: GiscusRepo;
repoId: string;
category?: string | undefined;
categoryId?: string | undefined;
mapping: GiscusMapping;
term?: string | undefined;
theme?: GiscusTheme | undefined;
reactionsEnabled?: BooleanString | undefined;
strict?: BooleanString | undefined;
emitMetadata?: BooleanString | undefined;
inputPosition?: GiscusInputPosition | undefined;
lang?: GiscusLang | undefined;
loading?: GiscusLoading | undefined;
}
declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
/**
* The identifier of the comment
*
* 评论标识符
*/
identifier: {
type: StringConstructor;
required: true;
};
/**
* Whether the component is in darkmode
*
* 组件是否处于夜间模式
*/
darkmode: BooleanConstructor;
}>, () => VNode | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
/**
* The identifier of the comment
*
* 评论标识符
*/
identifier: {
type: StringConstructor;
required: true;
};
/**
* Whether the component is in darkmode
*
* 组件是否处于夜间模式
*/
darkmode: BooleanConstructor;
}>> & Readonly<{}>, {
darkmode: boolean;
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
export { _default as default };
export type { GiscusLang, GiscusLoading, GiscusProps };