import { type StaticResult } from './static-config.js'; import type { Context } from '../context.js'; export declare const DEFAULT_ADMIN_PATH = "/admin"; export declare const DEFAULT_SIGN_IN_PATH = "/sign-in"; export declare const PREVIOUS_RELEASE_ROUTES_SOURCE = "/**\n * This Source Code is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/.\n *\n * Copyright (c) Infonomic Company Limited\n */\n\n/**\n * URL segments for admin and (future) public API routes. Defaults of\n * `/admin` and `/api` are applied automatically by `resolveRoutes()` \u2014\n * keys only need to be set here when overriding either default.\n */\n\nimport type { RoutesConfig } from '@byline/core'\n\nexport const routes: Partial = {\n admin: '/admin',\n api: '/api',\n}\n\n/**\n * Fallback used by both server and admin entry points when no\n * `VITE_SERVER_URL` env var is set. Each entry resolves the env var\n * itself (Vite's `import.meta.env` on the client, Node's `process.env`\n * on the server) and falls back to this literal.\n */\nexport const DEFAULT_SERVER_URL = 'http://localhost:5173/'\n"; export interface ValidatedRoutePaths { adminPath: string; adminSegments: string[]; apiPath: string; apiSegments: string[]; signInPath: string; signInSegments: string[]; } export interface GeneratedRoutesSource { adminPath: string; apiPath: string; signInPath: string; } export interface StaticRouteConfig { admin: string; api: string; signIn: string; } type ValidationResult = { ok: true; value: ValidatedRoutePaths; } | { ok: false; error: string; }; export declare function validateRoutePaths(ctx: Context, adminInput?: string, signInInput?: string, apiInput?: string): ValidationResult; /** Recognize only generated routes.ts sources with route literals as the sole variation. */ export declare function recognizeGeneratedRoutesSource(source: string, canonical: string): GeneratedRoutesSource | null; export declare function readStaticRoutesSource(source: string): StaticResult; export declare function routesSourceAligned(source: string, ctx: Context, expected: ValidatedRoutePaths): boolean; export declare function renderGeneratedRoutesSource(canonical: string, adminPath: string, apiPath: string, signInPath: string): string; export declare function validateCanonicalRoutesSource(source: string): StaticResult; export declare function canonicalRoutesTemplatePath(ctx: Context): string; export {}; //# sourceMappingURL=route-config.d.ts.map