import { Optional } from "@serwist/utils"; import { BuildOptions } from "@serwist/cli"; import { NextConfigComplete } from "next/dist/server/config-shared.js"; interface SerwistOptions extends Optional { /** * Whether Serwist should precache prerendered routes. * * @default true */ precachePrerendered?: boolean; } export declare const generateGlobPatterns: (distDir: string) => string[]; /** * Additional build context. */ export interface SerwistContext { /** * The current working directory. */ cwd?: string; /** * Whether Serwist is in development mode. This option determines how Next.js configuration * is resolved. Note that it doesn't change how the service worker is built. */ isDev?: boolean; } export interface Serwist { /** * Integrates Serwist into your Next.js app. * @param options * @returns */ (options: SerwistOptions, nextConfig?: NextConfigComplete, context?: SerwistContext): Promise; /** * Integrates Serwist into your Next.js app. Allows reading fully resolved Next.js configuration. * @param optionsFunction * @returns */ withNextConfig: (optionsFunction: (nextConfig: NextConfigComplete) => Promise | SerwistOptions, context?: SerwistContext) => Promise; } export declare const serwist: Serwist; export type { SerwistOptions }; //# sourceMappingURL=index.config.d.mts.map