File size: 738 Bytes
96dd062 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | /// <reference types="astro/client" />
/// <reference path="../.astro/types.d.ts" />
declare global {
interface ImportMetaEnv {
readonly MEILI_MASTER_KEY: string;
}
interface ITOCManager {
init: () => void;
cleanup: () => void;
}
interface Window {
SidebarTOC: {
manager: ITOCManager | null;
};
FloatingTOC: {
btn: HTMLElement | null;
panel: HTMLElement | null;
manager: ITOCManager | null;
isPostPage: () => boolean;
};
toggleFloatingTOC: () => void;
tocInternalNavigation: boolean;
// swup is defined in global.d.ts
// biome-ignore lint/suspicious/noExplicitAny: External library without types
spine: any;
closeAnnouncement: () => void;
}
}
export {};
|