import type { HttpMethod } from '../components/devtools/api-tester/types'; export interface UseApiExplorerNavigationOptions { /** Base path that precedes the dynamic segments (e.g., '/devtools/api') */ basePath: string; /** Optional callback when endpoint changes */ onEndpointChange?: (method: HttpMethod | null, path: string | null) => void; } export interface UseApiExplorerNavigationReturn { /** Currently selected HTTP method */ selectedMethod: HttpMethod | null; /** Currently selected API path (e.g., '/api/v1/customers') */ selectedPath: string | null; /** Navigate to an endpoint */ navigateToEndpoint: (method: HttpMethod, path: string) => void; /** Clear selection (navigate to base) */ clearSelection: () => void; } /** * Hook for API Explorer navigation with URL synchronization * * Provides bidirectional sync between URL pathname and selected endpoint. * URL format: {basePath}/{METHOD}/{path} * * @example * ```tsx * const { * selectedMethod, * selectedPath, * navigateToEndpoint, * } = useApiExplorerNavigation({ basePath: '/devtools/api' }) * * // URL: /devtools/api/GET/api/v1/customers * // selectedMethod: 'GET' * // selectedPath: '/api/v1/customers' * ``` */ export declare function useApiExplorerNavigation(options: UseApiExplorerNavigationOptions): UseApiExplorerNavigationReturn; //# sourceMappingURL=useApiExplorerNavigation.d.ts.map