expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
19 lines • 690 B
TypeScript
import { type State } from './fork/getPathFromState';
type SearchParams = Record<string, string | string[]>;
export type UrlObject = {
unstable_globalHref: string;
pathname: string;
readonly params: SearchParams;
segments: string[];
isIndex: boolean;
};
export declare function getRouteInfoFromState(getPathFromState: (state: State, asPath: boolean) => {
path: string;
params: any;
}, state: State, baseUrl?: string): UrlObject;
export declare function getNormalizedStatePath({ path: statePath, params, }: {
path: string;
params: any;
}, baseUrl?: string): Pick<UrlObject, 'segments' | 'params'>;
export {};
//# sourceMappingURL=LocationProvider.d.ts.map