import type { Ref } from '@stacksjs/stx'; /** * Unwrap a MaybeRef to its raw value. */ export declare function unref(val: MaybeRef): T; /** * Unwrap a MaybeRefOrGetter to its raw value. */ export declare function toValue(val: MaybeRefOrGetter): T; /** * Check if a value is a Ref. */ export declare function isRef(val: MaybeRef): val is Ref; /** * No-op function for default callbacks. */ export declare function noop(): void; /** * Get the default window, SSR-safe. */ export declare function defaultWindow(): Window | undefined; /** * Get the default document, SSR-safe. */ export declare function defaultDocument(): Document | undefined; /** * Get the default navigator, SSR-safe. */ export declare function defaultNavigator(): Navigator | undefined; /** * Type helper for configurable window. */ export declare interface ConfigurableWindow { window?: Window } /** * Type helper for configurable document. */ export declare interface ConfigurableDocument { document?: Document } /** * A value that may be a raw value or a Ref. */ export type MaybeRef = T | Ref; /** * A value that may be a raw value, a Ref, or a getter function. */ export type MaybeRefOrGetter = T | Ref | (() => T);