UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

41 lines (40 loc) 1.52 kB
import type { Ref } from 'vue'; import type { NuxtApp } from '#app'; export { useHead } from '@unhead/vue'; export { useAppConfig } from '../composables/useAppConfig'; export { defineShortcuts } from '../../composables/defineShortcuts'; export { defineLocale } from '../../composables/defineLocale'; export { useLocale } from '../../composables/useLocale'; export declare const clearError: () => void; export declare const useColorMode: () => { forced: boolean; preference?: undefined; readonly value?: undefined; } | { preference: "dark" | "light" | "system"; readonly value: import("@vueuse/core").BasicColorMode; forced: boolean; }; export declare const useCookie: <T = string>(_name: string, _options?: Record<string, any>) => { value: T; get: () => T; set: () => void; update: () => void; refresh: () => Promise<Awaited<T>>; remove: () => void; }; export declare const useState: <T>(key: string, init: () => T) => Ref<T>; export declare function useNuxtApp(): { isHydrating: boolean; payload: { serverRendered: any; }; hooks: import("hookable").Hookable<Record<string, any>, string>; hook: <NameT extends string>(name: NameT, function_: any, options?: { allowDeprecated?: boolean; }) => () => void; }; export declare function useRuntimeHook(name: string, fn: (...args: any[]) => void): void; export declare function defineNuxtPlugin(plugin: (nuxtApp: NuxtApp) => void): { install(app: import("vue").App<any>): void; };