Files
med-notes/.pnpm-store/v10/files/5d/02ad418170c9d0c713f2198cf34748f1d529661a7c87fd34b17a4caaeb62b6ab5337861569500ddad1340662a641586391e016ad61389dab05e14969747ae3
2025-05-09 05:30:08 +02:00

15 lines
586 B
Plaintext

import { ParsedLocation, ScrollRestorationEntry, ScrollRestorationOptions } from '@tanstack/router-core';
/**
* @deprecated use createRouter's `scrollRestoration` option instead
*/
export declare function ScrollRestoration(_props: ScrollRestorationOptions): null;
export declare function useElementScrollRestoration(options: ({
id: string;
getElement?: () => Window | Element | undefined | null;
} | {
id?: string;
getElement: () => Window | Element | undefined | null;
}) & {
getKey?: (location: ParsedLocation) => string;
}): ScrollRestorationEntry | undefined;