import { CompilerContext } from "../../contexts/compiler.js"; import { Specifier } from "../../@types/specifier.js"; import { Program } from "oxc-parser"; /** * Options for the `collect` function. */ type CollectOptions = { /** * Compiler context. */ context: CompilerContext; /** * Program to be collected. */ program: Program; /** * Package name of the CSS-in-JS package. */ packageName: string; /** * CSS-in-JS package functions to be preprocessed. */ includedFunctions: readonly string[]; }; /** * Result of the `collect` function. */ type CollectResult = { /** * Whether the CSS-in-JS package is imported. */ isImported: boolean; /** * Namespaces used by the CSS-in-JS package. */ namespaces: string[]; /** * Specifiers used by the CSS-in-JS package. */ specifiers: Specifier[]; }; /** * Collect the information of the file. */ declare const collect: (options: CollectOptions) => CollectResult; export { type CollectOptions, type CollectResult, type Specifier, collect }; //# sourceMappingURL=index.d.ts.map