import type { NormalizePath, PathPattern } from '../isomorphic-utils/build-route-href.js'; import type { SearchCodec } from '../isomorphic-utils/search-codec.js'; type SetSearch = (update: Partial | ((prev: Search) => Partial), options?: { history?: 'push' | 'replace'; scroll?: boolean; }) => Promise; type SearchRoute> = { path: NormalizePath extends NormalizePath ? Path : never; searchCodec: SearchCodec; }; /** * Parse the current RouterHost query with a local route's codec. Returns null * for a different path; codec errors propagate to the render boundary. The * result is memoized by path, codec and query. Generated route types reject * unknown patterns; route groups are ignored. */ export declare function useSearch>({ path, searchCodec }: SearchRoute): Search | null; /** * Shallow-merge a partial search (or updater result) with the current parsed * query, serialize it, and navigate through RouterHost. * Keeps the current pathname, base, and hash; defaults to push and no scroll. * A mismatched path is a no-op. Codec and navigation errors reject the promise. * Outbound validation belongs in `serialize`; only the current query is parsed. */ export declare function useSetSearch>({ path, searchCodec }: SearchRoute): SetSearch; export {};