UNPKG

@matthew.ngo/react-filter-pilot

Version:

Powerful filtering, pagination, and sorting for React with TanStack Query integration

21 lines (18 loc) 573 B
import { UrlHandler } from '../types/index.cjs'; /** * Universal URL handler with custom getter and setter */ declare function createUrlHandler(options: { getUrl: () => string; setUrl: (url: string) => void; baseUrl?: string; }): UrlHandler; /** * Hash-based URL handler (for hash routing) */ declare function useHashUrlHandler(): UrlHandler; /** * Memory-based URL handler (for testing or React Native) */ declare function createMemoryUrlHandler(initialUrl?: string): UrlHandler; export { createMemoryUrlHandler, createUrlHandler, useHashUrlHandler };