import type { NextRequest } from 'next/server'; import { NextResponse } from 'next/server'; import type { NextApiRequest, NextApiResponse } from 'next'; import { type FlowEndpointOptions } from './types'; export interface FlowEndpointAppHandlers { POST: (request: NextRequest) => Promise; } export type FlowEndpointPagesHandler = (req: NextApiRequest, res: NextApiResponse) => Promise; export declare function createFlowEndpointHandlers(options: FlowEndpointOptions): FlowEndpointAppHandlers; export declare function createFlowEndpointPagesHandler(options: FlowEndpointOptions): FlowEndpointPagesHandler; export type { FlowEndpointOptions, FlowRequest, FlowRequestHandler, FlowErrorHandler, } from './types'; export { FlowResponseBuilder } from './types';