import { z } from 'zod'; declare const RspackPluginOptionsSchema: z.ZodObject<{ include: z.ZodOptional>; exclude: z.ZodOptional>; addDataAttr: z.ZodOptional; analyze: z.ZodOptional; cssEntry: z.ZodOptional; safelistPath: z.ZodOptional; }, z.core.$strip>; type RspackPluginOptionsInput = z.infer; declare const parseRspackPluginOptions: (options: unknown) => { include?: RegExp | undefined; exclude?: RegExp | undefined; addDataAttr?: boolean | undefined; analyze?: boolean | undefined; cssEntry?: string | undefined; safelistPath?: string | undefined; }; /** * tailwind-styled-v4 - Rspack Plugin v5 (stable) * * Usage: * import { tailwindStyledRspackPlugin } from "@tailwind-styled/rspack" * * export default defineConfig({ * plugins: [tailwindStyledRspackPlugin()], * }) * * v5: * - Simplified API * - Mode always zero-runtime */ interface RspackRule { _tailwindStyledRspackMarker?: boolean; test?: RegExp; exclude?: RegExp; use?: Array<{ loader: string; options: { mode: "zero-runtime"; addDataAttr: boolean; preserveImports: boolean; safelistPath?: string; }; }>; } interface RspackCompiler { options: { mode?: string; module?: { rules?: RspackRule[]; }; }; } interface RspackPluginOptions { /** File patterns to include. Default: /\.[jt]sx?$/ */ include?: RegExp; /** File patterns to exclude. Default: /node_modules/ */ exclude?: RegExp; /** Add data-tw debug attributes in dev. Default: true in dev */ addDataAttr?: boolean; /** Enable analyzer. Default: false */ analyze?: boolean; /** * Path ke safelist CSS file. * `_tw-state-static.css` ditulis di direktori yang sama. * Default: `/__tw_safelist.css` */ safelistPath?: string; } declare class TailwindStyledRspackPlugin { private opts; constructor(opts?: RspackPluginOptions); apply(compiler: RspackCompiler): void; } declare function tailwindStyledRspackPlugin(opts?: RspackPluginOptions): TailwindStyledRspackPlugin; export { type RspackPluginOptions, type RspackPluginOptionsInput, RspackPluginOptionsSchema, TailwindStyledRspackPlugin, parseRspackPluginOptions, tailwindStyledRspackPlugin };