master
1import type PhotoSwipeLightbox from 'photoswipe/lightbox';
2import type { Swup } from 'swup';
3
4declare global {
5 interface Window {
6 swup: Swup;
7 lightbox: typeof PhotoSwipeLightbox;
8 pswpModuleImporter: () => Promise<typeof import('photoswipe')>;
9 }
10
11 const twikoo: {
12 init: (options: {
13 envId: string;
14 el: string;
15 region?: string;
16 path?: string;
17 lang?: string;
18 onCommentLoaded?: () => void;
19 }) => Promise<void>;
20 getCommentsCount: (options: {
21 envId: string;
22 urls: string[];
23 includeReply?: boolean;
24 }) => Promise<{ url: string; count: number }[]>;
25 getRecentComments: (options: {
26 envId: string;
27 urls?: string[];
28 pageSize?: number;
29 includeReply?: boolean;
30 }) => Promise<
31 {
32 id: string;
33 url: string;
34 nick: string;
35 mailMd5: string;
36 link: string;
37 comment: string;
38 commentText: string;
39 created: number;
40 avatar: string;
41 relativeTime: string;
42 }[]
43 >;
44 };
45}