import { ContextTrinity } from "../createTrinity/index.mjs"; import { Plugin } from "../createPlugin/index.mjs"; import "../index.mjs"; import { ShallowRef } from "vue"; //#region src/composables/useHydration/index.d.ts interface HydrationContext { /** True when root component has mounted (hydration complete) */ isHydrated: Readonly>; /** True after first tick post-hydration (safe for animations after state restoration) */ isSettled: Readonly>; /** Mark hydration as complete */ hydrate: () => void; /** Mark as settled (called automatically after nextTick post-hydration) */ settle: () => void; } interface HydrationOptions {} interface HydrationContextOptions extends HydrationOptions { namespace?: string; } interface HydrationPluginOptions extends HydrationContextOptions {} /** * Creates a new hydration instance. * * @returns A new hydration instance. * * @see https://0.vuetifyjs.com/composables/plugins/use-hydration * * @example * ```ts * import { createHydration } from '@vuetify/v0' * * const hydration = createHydration() * console.log(hydration.isHydrated.value) // false * hydration.hydrate() * console.log(hydration.isHydrated.value) // true * ``` */ declare function createHydration(): E; declare function createFallbackHydration(): E; /** * Creates a new hydration context trinity. * * @param options Options for creating the hydration context. * @template E The type of the hydration context. * @returns A new hydration context trinity. * * @see https://0.vuetifyjs.com/composables/plugins/use-hydration * * @example * ```ts * import { createHydrationContext } from '@vuetify/v0' * * export const [useHydrationContext, provideHydrationContext, context] = createHydrationContext({ * namespace: 'app:hydration', * }) * ``` */ declare const createHydrationContext: <_E extends HydrationContext = HydrationContext>(_options?: HydrationContextOptions | undefined) => ContextTrinity<_E>, createHydrationPlugin: (_options?: (HydrationContextOptions & Pick<{ namespace?: string; persist?: boolean; devtools?: boolean; }, "devtools">) | undefined) => Plugin, useHydration: <_E extends HydrationContext = HydrationContext>(namespace?: string) => _E; //#endregion export { HydrationContext, HydrationContextOptions, HydrationOptions, HydrationPluginOptions, createFallbackHydration, createHydration, createHydrationContext, createHydrationPlugin, useHydration };