weapp-tailwindcss
Version:
把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!
26 lines (25 loc) • 1.54 kB
TypeScript
import type { IStyleHandlerOptions } from '@weapp-tailwindcss/postcss/types';
import type { createWeappTailwindcssGenerator } from '../../../../generator/index.js';
export declare function shouldFinalizeMarkedUserLayerComponentsCss(file: string): boolean;
export declare function splitRawSourceByGeneratedCssOrder(rawSource: string, rawTailwindCss: string): {
before: string;
after: string;
} | undefined;
export declare function shouldUseGeneratorForCurrentCss(_majorVersion: number | undefined, cssHandlerOptions: IStyleHandlerOptions, options: {
forceGenerator?: boolean | undefined;
hasGeneratedCss: boolean;
hasGeneratedMarkers: boolean;
hasSourceDirectives: boolean;
rawSource: string;
runtimeCandidateCount?: number | undefined;
target?: string | undefined;
configuredCssSourceCount?: number | undefined;
}): boolean | undefined;
export declare function hasGeneratorSourceDirectives(source: string, importFallback: boolean): boolean;
export declare function createRuntimeWithCurrentCssCandidates(runtime: Set<string>, currentCssCandidates: string[], isolateCurrentCssCandidates: boolean): Set<string>;
export declare function mergeGeneratorResults(generatedResults: GeneratorResult[]): (import("../../../../generator/index.js").TailwindV4GenerateResult & {
target: import("../../../../generator/index.js").WeappTailwindcssGeneratorTarget;
rawCss: string;
}) | undefined;
type GeneratorResult = Awaited<ReturnType<ReturnType<typeof createWeappTailwindcssGenerator>['generate']>>;
export {};