react-waitlist
Version:
A customizable waitlist form component for React applications
29 lines (28 loc) • 805 B
TypeScript
/**
* Configuration for the Resend proxy
*/
export interface ResendProxyConfig {
/** Resend API key */
apiKey: string;
/** Allowed audience IDs (for security) */
allowedAudiences?: string[];
/** Rate limiting configuration */
rateLimit?: {
/** Maximum number of requests per window */
max: number;
/** Time window in seconds */
windowSec: number;
};
/** Enable debug mode */
debug?: boolean;
}
/**
* Request handler type for different frameworks
*/
type RequestHandler = (req: any, res: any) => Promise<void>;
/**
* Create a proxy handler for Resend API
* This function returns a handler compatible with various server frameworks
*/
export declare function createResendProxy(config: ResendProxyConfig): RequestHandler;
export {};