2024-06-14 18:11:01 +08:00
|
|
|
export {};
|
2022-03-12 17:45:37 +08:00
|
|
|
|
2024-06-14 18:11:01 +08:00
|
|
|
declare global {
|
|
|
|
export interface Window {
|
|
|
|
/** NProgress instance */
|
|
|
|
NProgress?: import('nprogress').NProgress;
|
|
|
|
/** Loading bar instance */
|
|
|
|
$loadingBar?: import('naive-ui').LoadingBarProviderInst;
|
|
|
|
/** Dialog instance */
|
|
|
|
$dialog?: import('naive-ui').DialogProviderInst;
|
|
|
|
/** Message instance */
|
|
|
|
$message?: import('naive-ui').MessageProviderInst;
|
|
|
|
/** Notification instance */
|
|
|
|
$notification?: import('naive-ui').NotificationProviderInst;
|
2024-09-05 11:06:30 +08:00
|
|
|
/** Content loading */
|
2024-09-05 11:54:54 +08:00
|
|
|
$loading?: {
|
|
|
|
loading: import('vue').Ref<boolean>;
|
|
|
|
description: import('vue').Ref<string>;
|
|
|
|
startLoading: (description?: string) => void;
|
|
|
|
endLoading: () => void;
|
|
|
|
};
|
2024-06-14 18:11:01 +08:00
|
|
|
}
|
2023-06-20 22:07:21 +08:00
|
|
|
|
2024-06-15 00:49:24 +08:00
|
|
|
interface ViewTransition {
|
|
|
|
ready: Promise<void>;
|
|
|
|
}
|
|
|
|
|
2024-06-14 18:11:01 +08:00
|
|
|
export interface Document {
|
|
|
|
startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition;
|
|
|
|
}
|
2023-06-20 22:07:21 +08:00
|
|
|
|
2024-06-14 18:11:01 +08:00
|
|
|
/** Build time of the project */
|
|
|
|
export const BUILD_TIME: string;
|
2022-03-12 17:45:37 +08:00
|
|
|
}
|