import type { EndRoutePath, LocaleType, RoutePathInterface, SegmentRoutePath } from "./types"; export interface Route { isSegment: () => boolean; isLocalized: () => boolean; getPath: (locale?: Locales) => T; toJSON: () => any; toString: () => string; } export interface EndRoute extends Route { ref: RouteRef; isSegment: () => false; } export interface SegmentRoute extends Route { defaultRoute: EndRoute | undefined; nestedRoutes: Route[]; isSegment: () => true; } export interface NotLocalizedRoute extends Route { isLocalized: () => false; getPath: () => T; } export interface LocalizedRoute extends Route { isLocalized: () => true; getPath: (locale?: Locales) => T; } //# sourceMappingURL=interfaces.d.ts.map