import type { RequestEvent } from '@sveltejs/kit'; import type { Rate } from '../rate'; export interface RateLimiterPlugin { hash: (event: RequestEvent, extraData: Extra) => string | boolean | null | Promise; get rate(): Rate | Rate[]; }