/**
 * App Router Detector
 *
 * Parses the user's `src/app.ts` to detect whether they pass a `router` property
 * to `createApp()`. If detected, resolves the router variable(s) to their import
 * sources and mount paths.
 *
 * Uses TypeScript's compiler API to reliably detect the pattern, consistent with
 * the lifecycle generator approach.
 */
import type { Logger } from '../../types';
/**
 * A resolved mount point from `createApp({ router })`.
 */
export interface DetectedRouteMount {
    /** Mount path (e.g., '/api', '/api/v1') */
    path: string;
    /** Absolute file path of the router module */
    routerFile: string;
}
/**
 * Result of detecting explicit router usage in app.ts.
 */
export interface AppRouterDetection {
    /** Whether `createApp({ router })` was found */
    detected: boolean;
    /** Resolved mount points with their router files */
    mounts: DetectedRouteMount[];
}
/**
 * Detect whether `src/app.ts` uses `createApp({ router })`.
 *
 * Returns `{ detected: false, mounts: [] }` when:
 * - `src/app.ts` doesn't exist
 * - `createApp()` is called without a `router` property
 * - Router variables can't be resolved to files
 */
export declare function detectExplicitRouter(rootDir: string, logger: Logger): Promise<AppRouterDetection>;
//# sourceMappingURL=app-router-detector.d.ts.map