/** Detect auth-related middleware in source text. */ export declare function detectAuthMiddlewareInSource(source: string): string[]; /** Detect session middleware in source text. */ export declare function detectSessionMiddlewareInSource(source: string): string[]; /** * Read `start/kernel.{ts,js}` from the app root and detect global auth * middleware. Returns an empty array if the file cannot be read. */ export declare function detectGlobalAuthMiddleware(makePath: (dir: string, file: string) => string): string[]; /** * Read `start/kernel.{ts,js}` from the app root and detect global session * middleware. Returns an empty array if the file cannot be read. */ export declare function detectGlobalSessionMiddleware(makePath: (dir: string, file: string) => string): string[]; /** * Build the warning message lines for detected auth middleware. */ export declare function buildAuthMiddlewareWarning(found: string[], dimFn: (s: string) => string, boldFn: (s: string) => string): string[]; /** * Build the warning message lines for detected session middleware. */ export declare function buildSessionMiddlewareWarning(found: string[], dimFn: (s: string) => string, boldFn: (s: string) => string): string[];