/** * Low-level Effect wrappers for History and its usage via Context. * @since 8.19.0 */ import * as Context from "@typed/context"; import * as Effect from "effect/Effect"; /** * A Context for the History object * @since 8.19.0 * @category models */ export interface History extends globalThis.History { } /** * A Context for the globalThis object * @since 8.19.0 * @category context */ export declare const History: Context.Tagged; /** * Call pushState on the History object * @since 8.19.0 * @category actions */ export declare const pushState: (url: string | URL, data?: unknown) => Effect.Effect; /** * Call replaceState on the History object * @since 8.19.0 * @category actions */ export declare const replaceState: (url: string | URL, data?: unknown) => Effect.Effect; /** * get the current state from the History object * @since 8.19.0 * @category actions */ export declare const getState: Effect.Effect; /** * Navigate to a delta in the history * @since 8.19.0 * @category actions */ export declare const go: (delta: number) => Effect.Effect; /** * Go back in the history * @since 8.19.0 * @category actions */ export declare const back: Effect.Effect; /** * Go forward in the history * @since 8.19.0 * @category actions */ export declare const forward: Effect.Effect; /** * Get the number of history entries * @since 8.19.0 * @category actions */ export declare const getLength: Effect.Effect; /** * Get the current scroll restoration behavior * @since 8.19.0 * @category actions */ export declare const getScrollRestoration: Effect.Effect; /** * Set the current scroll restoration behavior * @since 8.19.0 * @category actions */ export declare const setScrollRestoration: (scrollRestoration: ScrollRestoration) => Effect.Effect; /** * Get the current scroll restoration behavior to "auto" * @since 8.19.0 * @category actions */ export declare const setAutoScrollRestoration: Effect.Effect; /** * Get the current scroll restoration behavior to "manual" * @since 8.19.0 * @category actions */ export declare const setManualScrollRestoration: Effect.Effect; //# sourceMappingURL=History.d.ts.map