/**
 * True when `filename` lives under an `api/` directory — either `src/api/`
 * (the canonical Medusa layout) or a bare `api/` (nested project layouts).
 * Bails on synthetic / empty filenames.
 */
export declare const isUnderApiDir: (filename: string | undefined) => boolean;
/**
 * Returns the path segments of a file under `src/api/` (or a bare `api/`),
 * excluding the file's own basename. Returns `null` when the file is not
 * under an api directory.
 *
 * Example: `/proj/src/api/admin/customers/[id]/route.ts`
 *       → `["admin", "customers", "[id]"]`
 */
export declare function getApiRouteSegments(filename: string): string[] | null;
/**
 * Absolute (POSIX) path to the `src/api` (or bare `api`) directory that
 * contains `filename`, or `null` if the file is not under one.
 */
export declare function findApiRoot(filename: string): string | null;
//# sourceMappingURL=api-route.d.ts.map