/** * Stores state in `sessionStorage` and keeps it in sync. * Mirrors the API of `useLocalStorage`. * * @template T - Type of the stored value * @param key - Storage key * @param initial - Initial / fallback value * @returns A tuple `[value, setValue]` similar to `useState` * * @example * const [step, setStep] = useSessionStorage("wizard-step", 0); */ export declare const useSessionStorage: (key: string, initial: T) => readonly [T, (newValue: T) => void]; //# sourceMappingURL=useSessionStorage.d.ts.map