expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
13 lines (12 loc) • 686 B
TypeScript
import type { RedirectConfig } from './getRoutesCore';
import type { StoreRedirects } from './global-state/types';
export declare function applyRedirects(url: string | null | undefined, redirects: StoreRedirects[] | undefined): string | undefined | null;
export declare function getRedirectModule(redirectConfig: RedirectConfig): {
default: () => import("react").CElement<{
href: string;
}, import("react").Component<{
href: string;
}, any, any>> | null;
};
export declare function convertRedirect(path: string, config: RedirectConfig): string;
export declare function mergeVariablesWithPath(path: string, params: Record<string, string | string[]>): string;