import type { SetStateAction, WritableAtom } from 'jotai/vanilla'; export type Location = { pathname?: string; searchParams?: URLSearchParams; hash?: string; }; export type Options = { preloaded?: T; replace?: boolean; getLocation?: () => T; applyLocation?: (location: T, options?: { replace?: boolean; }) => void; subscribe?: (callback: () => void) => () => void; }; type RequiredOptions = Omit, 'getLocation' | 'applyLocation'> & Required, 'getLocation' | 'applyLocation'>>; type AtomOptions = Pick, 'replace'>; export declare function atomWithLocation(options?: Options): WritableAtom, AtomOptions? ], void>; export declare function atomWithLocation(options: RequiredOptions): WritableAtom, AtomOptions?], void>; export {};