UNPKG

@centinel/nextjs

Version:

Package designed to add Centinel Analytica functionality to Next.js applications

9 lines 620 B
import { NextRequest, NextResponse } from 'next/server'; import { CentinelMiddleware } from './core/CentinelMiddleware'; import type { CentinelConfig } from './types'; export default function middleware(req: NextRequest): Promise<NextResponse<unknown>>; export declare function createCentinelMiddleware(config: CentinelConfig): (req: NextRequest) => Promise<import("./types").CentinelResult>; export declare function createCentinelMiddlewareFromEnv(): (req: NextRequest) => Promise<import("./types").CentinelResult>; export { CentinelMiddleware }; export type { CentinelConfig }; //# sourceMappingURL=middleware.d.ts.map