import type { Diagnostic, ShorteningMap, StyleframeOptions } from "@styleframe/core"; export type OutputFile = { name: string; content: string; }; export type Output = { files: Array; /** Problems `validate()` found in the instance */ diagnostics?: Array; }; export type TranspileContext = { treeshake?: boolean; scanner?: boolean; shortMap?: ShorteningMap; }; export type ConsumeFunction = ( instance: unknown, options: StyleframeOptions, context?: TranspileContext, ) => string; export type TranspileOptions = { type?: "css" | "ts" | "dts" | "all"; treeshake?: boolean; scanner?: boolean; minify?: boolean; minifyOptions?: { properties?: Record; values?: Record; modifiers?: Record; }; consumers?: { css: ConsumeFunction; ts: ConsumeFunction; dts: ConsumeFunction; }; };