import { NextRequest, NextResponse } from 'next/server';
interface APIConfig {
    publicApiKey: string;
    secretApiKey: string;
}
/**
 * Creates API route handlers for Next.js App Router
 *
 * Usage in app/api/metal/[...action]/route.ts:
 * ```typescript
 * export { GET, POST } from 'metal-presale/next'
 * ```
 */
export declare function createMetalAPIHandlers(config: APIConfig): (request: NextRequest, { params }: {
    params: {
        action: string[];
    };
}) => Promise<NextResponse<{
    holder: import('./client').HolderResponse;
}> | NextResponse<{
    error: any;
}> | NextResponse<import('./client').PresaleResponse[]> | NextResponse<{
    success: true;
}> | NextResponse<{
    tokenQuantity: number;
    dollarValue: number;
}>>;
export declare function GET(request: NextRequest, context: {
    params: {
        action: string[];
    };
}): Promise<NextResponse<{
    holder: import('./client').HolderResponse;
}> | NextResponse<{
    error: any;
}> | NextResponse<import('./client').PresaleResponse[]> | NextResponse<{
    success: true;
}> | NextResponse<{
    tokenQuantity: number;
    dollarValue: number;
}>>;
export declare function POST(request: NextRequest, context: {
    params: {
        action: string[];
    };
}): Promise<NextResponse<{
    holder: import('./client').HolderResponse;
}> | NextResponse<{
    error: any;
}> | NextResponse<import('./client').PresaleResponse[]> | NextResponse<{
    success: true;
}> | NextResponse<{
    tokenQuantity: number;
    dollarValue: number;
}>>;
export {};
//# sourceMappingURL=next.d.ts.map