import type { Ref } from '@stacksjs/stx'; /** * Reactive localStorage/sessionStorage wrapper. * Creates a stx ref that syncs with browser storage. * * @param key - Storage key * @param defaultValue - Default value when key doesn't exist * @param storage - Storage backend (defaults to localStorage) * @param options - Serializer options */ export declare function useStorage(key: string, defaultValue: T, storage?: Storage, options?: UseStorageOptions): Ref; declare interface UseStorageSerializer { read: (raw: string) => T write: (value: T) => string } declare interface UseStorageOptions { serializer?: UseStorageSerializer }