import type { Location } from "history";
type SYNCED_KEY = "refresh" | "fullscreen" | "theme";
export declare const useLocationSync: <Value extends {
    readonly theme: import("../../public/lib/types").DisplayTheme;
    readonly fullscreen: false;
    readonly refresh: null;
}[Key], Key extends SYNCED_KEY = any>({ key, value, onChange, location, }: {
    key: Key;
    value: Value;
    onChange: (value: Value | null) => void;
    location: Location;
}) => void;
export {};
