@stacksjs/ts-css 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import type { CssNode } from '../../parse';
2
+ export declare function removeComments(ast: CssNode, options?: { exclamation?: boolean | 'first-exclamation' }): void;
@@ -0,0 +1,2 @@
1
+ import type { CssNode } from '../../parse';
2
+ export declare function dedupeDeclarations(ast: CssNode): void;
@@ -0,0 +1,2 @@
1
+ export { removeComments } from './comment';
2
+ export { dedupeDeclarations } from './declaration';
@@ -0,0 +1,5 @@
1
+ import type { CssNode } from '../../parse';
2
+ export declare function compressTree(ast: CssNode, options?: CompressOptions): void;
3
+ export declare interface CompressOptions {
4
+ floatPrecision?: number | null
5
+ }
@@ -0,0 +1,13 @@
1
+ import { specificity as _specificity } from './specificity';
2
+ export type { MinifyOptions, MinifyResult } from './minify';
3
+ export type { Specificity } from './specificity';
4
+ /** Mirror csso's `syntax` namespace export. */
5
+ export declare const syntax: { specificity: typeof _specificity };
6
+ /**
7
+ * CSS minifier — the API surface that csso users (notably SVGO's
8
+ * `minifyStyles` and `inlineStyles`) depend on.
9
+ */
10
+ export { dedupeDeclarations, removeComments } from './clean';
11
+ export { compressTree } from './compress';
12
+ export { minify, minifyBlock } from './minify';
13
+ export { specificity, specificityToString } from './specificity';