declare module 'next-pwa' {
  import type { NextConfig } from 'next';

  type WithPWA = (nextConfig: NextConfig) => NextConfig;

  interface NextPWAOptions {
    dest: string;
    register?: boolean;
    skipWaiting?: boolean;
    disable?: boolean;
    buildExcludes?: string[];
    [key: string]: unknown;
  }

  const withPWA: (options: NextPWAOptions) => WithPWA;

  export default withPWA;
}
