'use client'; import "../defs-BxjUD_70.js"; import { AdapterOptions, AdapterProps } from "../context-CVI57OkI.js"; import { ReactElement, ReactNode } from "react"; //#region src/adapters/testing.d.ts type UrlUpdateEvent = { searchParams: URLSearchParams; queryString: string; options: Required; }; type OnUrlUpdateFunction = (event: UrlUpdateEvent) => void; type TestingAdapterProps = { searchParams?: string | Record | URLSearchParams; onUrlUpdate?: OnUrlUpdateFunction; rateLimitFactor?: number; resetUrlUpdateQueueOnMount?: boolean; children: ReactNode; } & AdapterProps; declare function NuqsTestingAdapter({ resetUrlUpdateQueueOnMount, defaultOptions, ...props }: TestingAdapterProps): ReactElement; /** * A higher order component that wraps the children with the NuqsTestingAdapter * * It allows creating wrappers for testing purposes by providing only the * necessary props to the NuqsTestingAdapter. * * Usage: * ```tsx * render(, { * wrapper: withNuqsTestingAdapter({ searchParams: '?foo=bar' }) * }) * ``` */ declare function withNuqsTestingAdapter(props?: Omit): ({ children }: { children: ReactNode; }) => ReactElement; //#endregion export { NuqsTestingAdapter, OnUrlUpdateFunction, UrlUpdateEvent, withNuqsTestingAdapter }; //# sourceMappingURL=testing.d.ts.map