@atmaticai/agent-tools-core 1.0.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.
- package/README.md +742 -0
- package/dist/archive/index.d.mts +1 -0
- package/dist/archive/index.d.ts +1 -0
- package/dist/archive/index.js +90 -0
- package/dist/archive/index.js.map +1 -0
- package/dist/archive/index.mjs +80 -0
- package/dist/archive/index.mjs.map +1 -0
- package/dist/color/index.d.mts +1 -0
- package/dist/color/index.d.ts +1 -0
- package/dist/color/index.js +347 -0
- package/dist/color/index.js.map +1 -0
- package/dist/color/index.mjs +336 -0
- package/dist/color/index.mjs.map +1 -0
- package/dist/crypto/index.d.mts +1 -0
- package/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.js +116 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/crypto/index.mjs +108 -0
- package/dist/crypto/index.mjs.map +1 -0
- package/dist/csv/index.d.mts +1 -0
- package/dist/csv/index.d.ts +1 -0
- package/dist/csv/index.js +371 -0
- package/dist/csv/index.js.map +1 -0
- package/dist/csv/index.mjs +348 -0
- package/dist/csv/index.mjs.map +1 -0
- package/dist/datetime/index.d.mts +1 -0
- package/dist/datetime/index.d.ts +1 -0
- package/dist/datetime/index.js +234 -0
- package/dist/datetime/index.js.map +1 -0
- package/dist/datetime/index.mjs +224 -0
- package/dist/datetime/index.mjs.map +1 -0
- package/dist/diff/index.d.mts +2 -0
- package/dist/diff/index.d.ts +2 -0
- package/dist/diff/index.js +84 -0
- package/dist/diff/index.js.map +1 -0
- package/dist/diff/index.mjs +78 -0
- package/dist/diff/index.mjs.map +1 -0
- package/dist/excel/index.d.mts +1 -0
- package/dist/excel/index.d.ts +1 -0
- package/dist/excel/index.js +163 -0
- package/dist/excel/index.js.map +1 -0
- package/dist/excel/index.mjs +153 -0
- package/dist/excel/index.mjs.map +1 -0
- package/dist/image/index.d.mts +1 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +123 -0
- package/dist/image/index.js.map +1 -0
- package/dist/image/index.mjs +107 -0
- package/dist/image/index.mjs.map +1 -0
- package/dist/index--vbnYfdE.d.mts +142 -0
- package/dist/index--vbnYfdE.d.ts +142 -0
- package/dist/index-7FZQloN-.d.mts +62 -0
- package/dist/index-7FZQloN-.d.ts +62 -0
- package/dist/index-7XgaTVH5.d.mts +93 -0
- package/dist/index-7XgaTVH5.d.ts +93 -0
- package/dist/index-7bvFmh45.d.mts +87 -0
- package/dist/index-7bvFmh45.d.ts +87 -0
- package/dist/index-BDZcIVCU.d.mts +53 -0
- package/dist/index-BDZcIVCU.d.ts +53 -0
- package/dist/index-BN00EnUU.d.mts +55 -0
- package/dist/index-BN00EnUU.d.ts +55 -0
- package/dist/index-CQ1EukC4.d.mts +59 -0
- package/dist/index-CQ1EukC4.d.ts +59 -0
- package/dist/index-CgRVnFOt.d.mts +91 -0
- package/dist/index-CgRVnFOt.d.ts +91 -0
- package/dist/index-DjBDZzuj.d.mts +54 -0
- package/dist/index-DjBDZzuj.d.ts +54 -0
- package/dist/index-FFrvmr-n.d.mts +50 -0
- package/dist/index-FFrvmr-n.d.ts +50 -0
- package/dist/index-QWC8yIgW.d.mts +106 -0
- package/dist/index-QWC8yIgW.d.ts +106 -0
- package/dist/index-RVqNunxE.d.mts +193 -0
- package/dist/index-RVqNunxE.d.ts +193 -0
- package/dist/index-fJD8SORm.d.mts +61 -0
- package/dist/index-fJD8SORm.d.ts +61 -0
- package/dist/index-pPy_XDQU.d.mts +56 -0
- package/dist/index-pPy_XDQU.d.ts +56 -0
- package/dist/index-rwh9hdD9.d.mts +68 -0
- package/dist/index-rwh9hdD9.d.ts +68 -0
- package/dist/index-uXdkAfea.d.mts +93 -0
- package/dist/index-uXdkAfea.d.ts +93 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +3744 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3694 -0
- package/dist/index.mjs.map +1 -0
- package/dist/json/index.d.mts +1 -0
- package/dist/json/index.d.ts +1 -0
- package/dist/json/index.js +599 -0
- package/dist/json/index.js.map +1 -0
- package/dist/json/index.mjs +552 -0
- package/dist/json/index.mjs.map +1 -0
- package/dist/markdown/index.d.mts +1 -0
- package/dist/markdown/index.d.ts +1 -0
- package/dist/markdown/index.js +151 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/markdown/index.mjs +139 -0
- package/dist/markdown/index.mjs.map +1 -0
- package/dist/math/index.d.mts +1 -0
- package/dist/math/index.d.ts +1 -0
- package/dist/math/index.js +247 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/index.mjs +240 -0
- package/dist/math/index.mjs.map +1 -0
- package/dist/pdf/index.d.mts +1 -0
- package/dist/pdf/index.d.ts +1 -0
- package/dist/pdf/index.js +546 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/index.mjs +518 -0
- package/dist/pdf/index.mjs.map +1 -0
- package/dist/regex/index.d.mts +1 -0
- package/dist/regex/index.d.ts +1 -0
- package/dist/regex/index.js +93 -0
- package/dist/regex/index.js.map +1 -0
- package/dist/regex/index.mjs +88 -0
- package/dist/regex/index.mjs.map +1 -0
- package/dist/settings/index.d.mts +41 -0
- package/dist/settings/index.d.ts +41 -0
- package/dist/settings/index.js +146 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/index.mjs +139 -0
- package/dist/settings/index.mjs.map +1 -0
- package/dist/sql/index.d.mts +1 -0
- package/dist/sql/index.d.ts +1 -0
- package/dist/sql/index.js +146 -0
- package/dist/sql/index.js.map +1 -0
- package/dist/sql/index.mjs +139 -0
- package/dist/sql/index.mjs.map +1 -0
- package/dist/text/index.d.mts +1 -0
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.js +250 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/index.mjs +242 -0
- package/dist/text/index.mjs.map +1 -0
- package/dist/xml/index.d.mts +1 -0
- package/dist/xml/index.d.ts +1 -0
- package/dist/xml/index.js +188 -0
- package/dist/xml/index.js.map +1 -0
- package/dist/xml/index.mjs +180 -0
- package/dist/xml/index.mjs.map +1 -0
- package/package.json +150 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
type IndentOption = 2 | 4 | 'tab';
|
|
2
|
+
interface FormatOptions {
|
|
3
|
+
indent?: IndentOption;
|
|
4
|
+
sortKeys?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface ValidationError {
|
|
7
|
+
path: string;
|
|
8
|
+
message: string;
|
|
9
|
+
keyword: string;
|
|
10
|
+
}
|
|
11
|
+
interface ValidationResult {
|
|
12
|
+
valid: boolean;
|
|
13
|
+
errors?: ValidationError[];
|
|
14
|
+
}
|
|
15
|
+
type QueryDialect = 'jsonpath' | 'jmespath';
|
|
16
|
+
interface QueryOptions {
|
|
17
|
+
dialect?: QueryDialect;
|
|
18
|
+
}
|
|
19
|
+
type ConvertFormat = 'json' | 'json5' | 'jsonc' | 'yaml' | 'toml';
|
|
20
|
+
interface ConvertOptions {
|
|
21
|
+
from: ConvertFormat;
|
|
22
|
+
to: ConvertFormat;
|
|
23
|
+
indent?: IndentOption;
|
|
24
|
+
}
|
|
25
|
+
interface DiffOperation {
|
|
26
|
+
op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
27
|
+
path: string;
|
|
28
|
+
value?: unknown;
|
|
29
|
+
from?: string;
|
|
30
|
+
}
|
|
31
|
+
interface DiffResult {
|
|
32
|
+
identical: boolean;
|
|
33
|
+
operations: DiffOperation[];
|
|
34
|
+
summary: {
|
|
35
|
+
added: number;
|
|
36
|
+
removed: number;
|
|
37
|
+
changed: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
interface JsonStats {
|
|
41
|
+
keys: number;
|
|
42
|
+
depth: number;
|
|
43
|
+
arrays: number;
|
|
44
|
+
objects: number;
|
|
45
|
+
strings: number;
|
|
46
|
+
numbers: number;
|
|
47
|
+
booleans: number;
|
|
48
|
+
nulls: number;
|
|
49
|
+
sizeBytes: number;
|
|
50
|
+
}
|
|
51
|
+
interface DetailedValidationError {
|
|
52
|
+
path: string;
|
|
53
|
+
message: string;
|
|
54
|
+
keyword: string;
|
|
55
|
+
expected?: unknown;
|
|
56
|
+
received?: unknown;
|
|
57
|
+
suggestion: string;
|
|
58
|
+
}
|
|
59
|
+
interface SchemaCoverage {
|
|
60
|
+
totalProperties: number;
|
|
61
|
+
validProperties: number;
|
|
62
|
+
missingRequired: string[];
|
|
63
|
+
extraProperties: string[];
|
|
64
|
+
}
|
|
65
|
+
interface SchemaValidationSummary {
|
|
66
|
+
valid: boolean;
|
|
67
|
+
summary: string;
|
|
68
|
+
errorCount: number;
|
|
69
|
+
errors: DetailedValidationError[];
|
|
70
|
+
coverage: SchemaCoverage;
|
|
71
|
+
suggestions: string[];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare function format(input: string, options?: FormatOptions): string;
|
|
75
|
+
declare function minify(input: string): string;
|
|
76
|
+
declare function parse(input: string): unknown;
|
|
77
|
+
declare function stringify(value: unknown, options?: FormatOptions): string;
|
|
78
|
+
|
|
79
|
+
declare function validate(input: string, schema?: string): ValidationResult;
|
|
80
|
+
declare function isValidJson(input: string): boolean;
|
|
81
|
+
|
|
82
|
+
declare function validateWithSummary(input: string, schema: string): SchemaValidationSummary;
|
|
83
|
+
|
|
84
|
+
declare function query(input: string, path: string, options?: QueryOptions): unknown;
|
|
85
|
+
declare function queryValue(data: unknown, path: string, dialect?: QueryDialect): unknown;
|
|
86
|
+
declare function queryMultiple(input: string, paths: string[], dialect?: QueryDialect): Record<string, unknown>;
|
|
87
|
+
|
|
88
|
+
declare function convert(input: string, options: ConvertOptions): string;
|
|
89
|
+
declare function toJson(input: string, from: ConvertFormat): string;
|
|
90
|
+
declare function fromJson(input: string, to: ConvertFormat): string;
|
|
91
|
+
declare function detectFormat(input: string): ConvertFormat | null;
|
|
92
|
+
|
|
93
|
+
declare function diff(a: string, b: string): DiffResult;
|
|
94
|
+
declare function diffValues(a: unknown, b: unknown): DiffResult;
|
|
95
|
+
declare function applyPatch(input: string, operations: DiffOperation[]): string;
|
|
96
|
+
|
|
97
|
+
declare function getStats(input: string): JsonStats;
|
|
98
|
+
declare function getSizeInfo(input: string): {
|
|
99
|
+
bytes: number;
|
|
100
|
+
formatted: string;
|
|
101
|
+
minifiedBytes: number;
|
|
102
|
+
savings: number;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
type index_ConvertFormat = ConvertFormat;
|
|
106
|
+
type index_ConvertOptions = ConvertOptions;
|
|
107
|
+
type index_DetailedValidationError = DetailedValidationError;
|
|
108
|
+
type index_DiffOperation = DiffOperation;
|
|
109
|
+
type index_DiffResult = DiffResult;
|
|
110
|
+
type index_FormatOptions = FormatOptions;
|
|
111
|
+
type index_IndentOption = IndentOption;
|
|
112
|
+
type index_JsonStats = JsonStats;
|
|
113
|
+
type index_QueryDialect = QueryDialect;
|
|
114
|
+
type index_QueryOptions = QueryOptions;
|
|
115
|
+
type index_SchemaCoverage = SchemaCoverage;
|
|
116
|
+
type index_SchemaValidationSummary = SchemaValidationSummary;
|
|
117
|
+
type index_ValidationError = ValidationError;
|
|
118
|
+
type index_ValidationResult = ValidationResult;
|
|
119
|
+
declare const index_applyPatch: typeof applyPatch;
|
|
120
|
+
declare const index_convert: typeof convert;
|
|
121
|
+
declare const index_detectFormat: typeof detectFormat;
|
|
122
|
+
declare const index_diff: typeof diff;
|
|
123
|
+
declare const index_diffValues: typeof diffValues;
|
|
124
|
+
declare const index_format: typeof format;
|
|
125
|
+
declare const index_fromJson: typeof fromJson;
|
|
126
|
+
declare const index_getSizeInfo: typeof getSizeInfo;
|
|
127
|
+
declare const index_getStats: typeof getStats;
|
|
128
|
+
declare const index_isValidJson: typeof isValidJson;
|
|
129
|
+
declare const index_minify: typeof minify;
|
|
130
|
+
declare const index_parse: typeof parse;
|
|
131
|
+
declare const index_query: typeof query;
|
|
132
|
+
declare const index_queryMultiple: typeof queryMultiple;
|
|
133
|
+
declare const index_queryValue: typeof queryValue;
|
|
134
|
+
declare const index_stringify: typeof stringify;
|
|
135
|
+
declare const index_toJson: typeof toJson;
|
|
136
|
+
declare const index_validate: typeof validate;
|
|
137
|
+
declare const index_validateWithSummary: typeof validateWithSummary;
|
|
138
|
+
declare namespace index {
|
|
139
|
+
export { type index_ConvertFormat as ConvertFormat, type index_ConvertOptions as ConvertOptions, type index_DetailedValidationError as DetailedValidationError, type index_DiffOperation as DiffOperation, type index_DiffResult as DiffResult, type index_FormatOptions as FormatOptions, type index_IndentOption as IndentOption, type index_JsonStats as JsonStats, type index_QueryDialect as QueryDialect, type index_QueryOptions as QueryOptions, type index_SchemaCoverage as SchemaCoverage, type index_SchemaValidationSummary as SchemaValidationSummary, type index_ValidationError as ValidationError, type index_ValidationResult as ValidationResult, index_applyPatch as applyPatch, index_convert as convert, index_detectFormat as detectFormat, index_diff as diff, index_diffValues as diffValues, index_format as format, index_fromJson as fromJson, index_getSizeInfo as getSizeInfo, index_getStats as getStats, index_isValidJson as isValidJson, index_minify as minify, index_parse as parse, index_query as query, index_queryMultiple as queryMultiple, index_queryValue as queryValue, index_stringify as stringify, index_toJson as toJson, index_validate as validate, index_validateWithSummary as validateWithSummary };
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export { type ConvertFormat as C, type DetailedValidationError as D, type FormatOptions as F, type IndentOption as I, type JsonStats as J, type QueryDialect as Q, type SchemaCoverage as S, type ValidationError as V, type ConvertOptions as a, type DiffOperation as b, type DiffResult as c, type QueryOptions as d, type SchemaValidationSummary as e, type ValidationResult as f, applyPatch as g, convert as h, index as i, detectFormat as j, diff as k, diffValues as l, format as m, fromJson as n, getSizeInfo as o, getStats as p, isValidJson as q, minify as r, parse as s, query as t, queryMultiple as u, queryValue as v, stringify as w, toJson as x, validate as y, validateWithSummary as z };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
type IndentOption = 2 | 4 | 'tab';
|
|
2
|
+
interface FormatOptions {
|
|
3
|
+
indent?: IndentOption;
|
|
4
|
+
sortKeys?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface ValidationError {
|
|
7
|
+
path: string;
|
|
8
|
+
message: string;
|
|
9
|
+
keyword: string;
|
|
10
|
+
}
|
|
11
|
+
interface ValidationResult {
|
|
12
|
+
valid: boolean;
|
|
13
|
+
errors?: ValidationError[];
|
|
14
|
+
}
|
|
15
|
+
type QueryDialect = 'jsonpath' | 'jmespath';
|
|
16
|
+
interface QueryOptions {
|
|
17
|
+
dialect?: QueryDialect;
|
|
18
|
+
}
|
|
19
|
+
type ConvertFormat = 'json' | 'json5' | 'jsonc' | 'yaml' | 'toml';
|
|
20
|
+
interface ConvertOptions {
|
|
21
|
+
from: ConvertFormat;
|
|
22
|
+
to: ConvertFormat;
|
|
23
|
+
indent?: IndentOption;
|
|
24
|
+
}
|
|
25
|
+
interface DiffOperation {
|
|
26
|
+
op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
27
|
+
path: string;
|
|
28
|
+
value?: unknown;
|
|
29
|
+
from?: string;
|
|
30
|
+
}
|
|
31
|
+
interface DiffResult {
|
|
32
|
+
identical: boolean;
|
|
33
|
+
operations: DiffOperation[];
|
|
34
|
+
summary: {
|
|
35
|
+
added: number;
|
|
36
|
+
removed: number;
|
|
37
|
+
changed: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
interface JsonStats {
|
|
41
|
+
keys: number;
|
|
42
|
+
depth: number;
|
|
43
|
+
arrays: number;
|
|
44
|
+
objects: number;
|
|
45
|
+
strings: number;
|
|
46
|
+
numbers: number;
|
|
47
|
+
booleans: number;
|
|
48
|
+
nulls: number;
|
|
49
|
+
sizeBytes: number;
|
|
50
|
+
}
|
|
51
|
+
interface DetailedValidationError {
|
|
52
|
+
path: string;
|
|
53
|
+
message: string;
|
|
54
|
+
keyword: string;
|
|
55
|
+
expected?: unknown;
|
|
56
|
+
received?: unknown;
|
|
57
|
+
suggestion: string;
|
|
58
|
+
}
|
|
59
|
+
interface SchemaCoverage {
|
|
60
|
+
totalProperties: number;
|
|
61
|
+
validProperties: number;
|
|
62
|
+
missingRequired: string[];
|
|
63
|
+
extraProperties: string[];
|
|
64
|
+
}
|
|
65
|
+
interface SchemaValidationSummary {
|
|
66
|
+
valid: boolean;
|
|
67
|
+
summary: string;
|
|
68
|
+
errorCount: number;
|
|
69
|
+
errors: DetailedValidationError[];
|
|
70
|
+
coverage: SchemaCoverage;
|
|
71
|
+
suggestions: string[];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare function format(input: string, options?: FormatOptions): string;
|
|
75
|
+
declare function minify(input: string): string;
|
|
76
|
+
declare function parse(input: string): unknown;
|
|
77
|
+
declare function stringify(value: unknown, options?: FormatOptions): string;
|
|
78
|
+
|
|
79
|
+
declare function validate(input: string, schema?: string): ValidationResult;
|
|
80
|
+
declare function isValidJson(input: string): boolean;
|
|
81
|
+
|
|
82
|
+
declare function validateWithSummary(input: string, schema: string): SchemaValidationSummary;
|
|
83
|
+
|
|
84
|
+
declare function query(input: string, path: string, options?: QueryOptions): unknown;
|
|
85
|
+
declare function queryValue(data: unknown, path: string, dialect?: QueryDialect): unknown;
|
|
86
|
+
declare function queryMultiple(input: string, paths: string[], dialect?: QueryDialect): Record<string, unknown>;
|
|
87
|
+
|
|
88
|
+
declare function convert(input: string, options: ConvertOptions): string;
|
|
89
|
+
declare function toJson(input: string, from: ConvertFormat): string;
|
|
90
|
+
declare function fromJson(input: string, to: ConvertFormat): string;
|
|
91
|
+
declare function detectFormat(input: string): ConvertFormat | null;
|
|
92
|
+
|
|
93
|
+
declare function diff(a: string, b: string): DiffResult;
|
|
94
|
+
declare function diffValues(a: unknown, b: unknown): DiffResult;
|
|
95
|
+
declare function applyPatch(input: string, operations: DiffOperation[]): string;
|
|
96
|
+
|
|
97
|
+
declare function getStats(input: string): JsonStats;
|
|
98
|
+
declare function getSizeInfo(input: string): {
|
|
99
|
+
bytes: number;
|
|
100
|
+
formatted: string;
|
|
101
|
+
minifiedBytes: number;
|
|
102
|
+
savings: number;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
type index_ConvertFormat = ConvertFormat;
|
|
106
|
+
type index_ConvertOptions = ConvertOptions;
|
|
107
|
+
type index_DetailedValidationError = DetailedValidationError;
|
|
108
|
+
type index_DiffOperation = DiffOperation;
|
|
109
|
+
type index_DiffResult = DiffResult;
|
|
110
|
+
type index_FormatOptions = FormatOptions;
|
|
111
|
+
type index_IndentOption = IndentOption;
|
|
112
|
+
type index_JsonStats = JsonStats;
|
|
113
|
+
type index_QueryDialect = QueryDialect;
|
|
114
|
+
type index_QueryOptions = QueryOptions;
|
|
115
|
+
type index_SchemaCoverage = SchemaCoverage;
|
|
116
|
+
type index_SchemaValidationSummary = SchemaValidationSummary;
|
|
117
|
+
type index_ValidationError = ValidationError;
|
|
118
|
+
type index_ValidationResult = ValidationResult;
|
|
119
|
+
declare const index_applyPatch: typeof applyPatch;
|
|
120
|
+
declare const index_convert: typeof convert;
|
|
121
|
+
declare const index_detectFormat: typeof detectFormat;
|
|
122
|
+
declare const index_diff: typeof diff;
|
|
123
|
+
declare const index_diffValues: typeof diffValues;
|
|
124
|
+
declare const index_format: typeof format;
|
|
125
|
+
declare const index_fromJson: typeof fromJson;
|
|
126
|
+
declare const index_getSizeInfo: typeof getSizeInfo;
|
|
127
|
+
declare const index_getStats: typeof getStats;
|
|
128
|
+
declare const index_isValidJson: typeof isValidJson;
|
|
129
|
+
declare const index_minify: typeof minify;
|
|
130
|
+
declare const index_parse: typeof parse;
|
|
131
|
+
declare const index_query: typeof query;
|
|
132
|
+
declare const index_queryMultiple: typeof queryMultiple;
|
|
133
|
+
declare const index_queryValue: typeof queryValue;
|
|
134
|
+
declare const index_stringify: typeof stringify;
|
|
135
|
+
declare const index_toJson: typeof toJson;
|
|
136
|
+
declare const index_validate: typeof validate;
|
|
137
|
+
declare const index_validateWithSummary: typeof validateWithSummary;
|
|
138
|
+
declare namespace index {
|
|
139
|
+
export { type index_ConvertFormat as ConvertFormat, type index_ConvertOptions as ConvertOptions, type index_DetailedValidationError as DetailedValidationError, type index_DiffOperation as DiffOperation, type index_DiffResult as DiffResult, type index_FormatOptions as FormatOptions, type index_IndentOption as IndentOption, type index_JsonStats as JsonStats, type index_QueryDialect as QueryDialect, type index_QueryOptions as QueryOptions, type index_SchemaCoverage as SchemaCoverage, type index_SchemaValidationSummary as SchemaValidationSummary, type index_ValidationError as ValidationError, type index_ValidationResult as ValidationResult, index_applyPatch as applyPatch, index_convert as convert, index_detectFormat as detectFormat, index_diff as diff, index_diffValues as diffValues, index_format as format, index_fromJson as fromJson, index_getSizeInfo as getSizeInfo, index_getStats as getStats, index_isValidJson as isValidJson, index_minify as minify, index_parse as parse, index_query as query, index_queryMultiple as queryMultiple, index_queryValue as queryValue, index_stringify as stringify, index_toJson as toJson, index_validate as validate, index_validateWithSummary as validateWithSummary };
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export { type ConvertFormat as C, type DetailedValidationError as D, type FormatOptions as F, type IndentOption as I, type JsonStats as J, type QueryDialect as Q, type SchemaCoverage as S, type ValidationError as V, type ConvertOptions as a, type DiffOperation as b, type DiffResult as c, type QueryOptions as d, type SchemaValidationSummary as e, type ValidationResult as f, applyPatch as g, convert as h, index as i, detectFormat as j, diff as k, diffValues as l, format as m, fromJson as n, getSizeInfo as o, getStats as p, isValidJson as q, minify as r, parse as s, query as t, queryMultiple as u, queryValue as v, stringify as w, toJson as x, validate as y, validateWithSummary as z };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
interface XmlParseOptions {
|
|
2
|
+
preserveOrder?: boolean;
|
|
3
|
+
ignoreAttributes?: boolean;
|
|
4
|
+
trimValues?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface XmlFormatOptions {
|
|
7
|
+
indent?: number;
|
|
8
|
+
newline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface XmlValidationError {
|
|
11
|
+
line?: number;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
interface XmlValidationResult {
|
|
15
|
+
valid: boolean;
|
|
16
|
+
errors: XmlValidationError[];
|
|
17
|
+
}
|
|
18
|
+
interface XmlQueryResult {
|
|
19
|
+
matches: unknown[];
|
|
20
|
+
count: number;
|
|
21
|
+
}
|
|
22
|
+
interface XmlStats {
|
|
23
|
+
elements: number;
|
|
24
|
+
attributes: number;
|
|
25
|
+
textNodes: number;
|
|
26
|
+
depth: number;
|
|
27
|
+
sizeBytes: number;
|
|
28
|
+
}
|
|
29
|
+
type XmlConvertFormat = 'xml' | 'json';
|
|
30
|
+
|
|
31
|
+
declare function parse(input: string, options?: XmlParseOptions): Record<string, unknown>;
|
|
32
|
+
|
|
33
|
+
declare function format(input: string, options?: XmlFormatOptions): string;
|
|
34
|
+
declare function minify(input: string): string;
|
|
35
|
+
|
|
36
|
+
declare function validate(input: string): XmlValidationResult;
|
|
37
|
+
|
|
38
|
+
declare function query(input: string, path: string): XmlQueryResult;
|
|
39
|
+
|
|
40
|
+
declare function convert(input: string, from: XmlConvertFormat, to: XmlConvertFormat): string;
|
|
41
|
+
|
|
42
|
+
declare function getStats(input: string): XmlStats;
|
|
43
|
+
|
|
44
|
+
type index_XmlConvertFormat = XmlConvertFormat;
|
|
45
|
+
type index_XmlFormatOptions = XmlFormatOptions;
|
|
46
|
+
type index_XmlParseOptions = XmlParseOptions;
|
|
47
|
+
type index_XmlQueryResult = XmlQueryResult;
|
|
48
|
+
type index_XmlStats = XmlStats;
|
|
49
|
+
type index_XmlValidationError = XmlValidationError;
|
|
50
|
+
type index_XmlValidationResult = XmlValidationResult;
|
|
51
|
+
declare const index_convert: typeof convert;
|
|
52
|
+
declare const index_format: typeof format;
|
|
53
|
+
declare const index_getStats: typeof getStats;
|
|
54
|
+
declare const index_minify: typeof minify;
|
|
55
|
+
declare const index_parse: typeof parse;
|
|
56
|
+
declare const index_query: typeof query;
|
|
57
|
+
declare const index_validate: typeof validate;
|
|
58
|
+
declare namespace index {
|
|
59
|
+
export { type index_XmlConvertFormat as XmlConvertFormat, type index_XmlFormatOptions as XmlFormatOptions, type index_XmlParseOptions as XmlParseOptions, type index_XmlQueryResult as XmlQueryResult, type index_XmlStats as XmlStats, type index_XmlValidationError as XmlValidationError, type index_XmlValidationResult as XmlValidationResult, index_convert as convert, index_format as format, index_getStats as getStats, index_minify as minify, index_parse as parse, index_query as query, index_validate as validate };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { type XmlConvertFormat as X, type XmlFormatOptions as a, type XmlParseOptions as b, type XmlQueryResult as c, type XmlStats as d, type XmlValidationError as e, type XmlValidationResult as f, convert as g, format as h, index as i, getStats as j, minify as m, parse as p, query as q, validate as v };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
interface XmlParseOptions {
|
|
2
|
+
preserveOrder?: boolean;
|
|
3
|
+
ignoreAttributes?: boolean;
|
|
4
|
+
trimValues?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface XmlFormatOptions {
|
|
7
|
+
indent?: number;
|
|
8
|
+
newline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface XmlValidationError {
|
|
11
|
+
line?: number;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
interface XmlValidationResult {
|
|
15
|
+
valid: boolean;
|
|
16
|
+
errors: XmlValidationError[];
|
|
17
|
+
}
|
|
18
|
+
interface XmlQueryResult {
|
|
19
|
+
matches: unknown[];
|
|
20
|
+
count: number;
|
|
21
|
+
}
|
|
22
|
+
interface XmlStats {
|
|
23
|
+
elements: number;
|
|
24
|
+
attributes: number;
|
|
25
|
+
textNodes: number;
|
|
26
|
+
depth: number;
|
|
27
|
+
sizeBytes: number;
|
|
28
|
+
}
|
|
29
|
+
type XmlConvertFormat = 'xml' | 'json';
|
|
30
|
+
|
|
31
|
+
declare function parse(input: string, options?: XmlParseOptions): Record<string, unknown>;
|
|
32
|
+
|
|
33
|
+
declare function format(input: string, options?: XmlFormatOptions): string;
|
|
34
|
+
declare function minify(input: string): string;
|
|
35
|
+
|
|
36
|
+
declare function validate(input: string): XmlValidationResult;
|
|
37
|
+
|
|
38
|
+
declare function query(input: string, path: string): XmlQueryResult;
|
|
39
|
+
|
|
40
|
+
declare function convert(input: string, from: XmlConvertFormat, to: XmlConvertFormat): string;
|
|
41
|
+
|
|
42
|
+
declare function getStats(input: string): XmlStats;
|
|
43
|
+
|
|
44
|
+
type index_XmlConvertFormat = XmlConvertFormat;
|
|
45
|
+
type index_XmlFormatOptions = XmlFormatOptions;
|
|
46
|
+
type index_XmlParseOptions = XmlParseOptions;
|
|
47
|
+
type index_XmlQueryResult = XmlQueryResult;
|
|
48
|
+
type index_XmlStats = XmlStats;
|
|
49
|
+
type index_XmlValidationError = XmlValidationError;
|
|
50
|
+
type index_XmlValidationResult = XmlValidationResult;
|
|
51
|
+
declare const index_convert: typeof convert;
|
|
52
|
+
declare const index_format: typeof format;
|
|
53
|
+
declare const index_getStats: typeof getStats;
|
|
54
|
+
declare const index_minify: typeof minify;
|
|
55
|
+
declare const index_parse: typeof parse;
|
|
56
|
+
declare const index_query: typeof query;
|
|
57
|
+
declare const index_validate: typeof validate;
|
|
58
|
+
declare namespace index {
|
|
59
|
+
export { type index_XmlConvertFormat as XmlConvertFormat, type index_XmlFormatOptions as XmlFormatOptions, type index_XmlParseOptions as XmlParseOptions, type index_XmlQueryResult as XmlQueryResult, type index_XmlStats as XmlStats, type index_XmlValidationError as XmlValidationError, type index_XmlValidationResult as XmlValidationResult, index_convert as convert, index_format as format, index_getStats as getStats, index_minify as minify, index_parse as parse, index_query as query, index_validate as validate };
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { type XmlConvertFormat as X, type XmlFormatOptions as a, type XmlParseOptions as b, type XmlQueryResult as c, type XmlStats as d, type XmlValidationError as e, type XmlValidationResult as f, convert as g, format as h, index as i, getStats as j, minify as m, parse as p, query as q, validate as v };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
type ImageFormat = 'png' | 'jpeg' | 'webp' | 'gif' | 'tiff' | 'avif';
|
|
2
|
+
interface ResizeOptions {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
fit?: 'cover' | 'contain' | 'fill' | 'inside' | 'outside';
|
|
6
|
+
background?: string;
|
|
7
|
+
}
|
|
8
|
+
interface CropOptions {
|
|
9
|
+
left: number;
|
|
10
|
+
top: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
interface CompressOptions {
|
|
15
|
+
quality?: number;
|
|
16
|
+
format?: ImageFormat;
|
|
17
|
+
}
|
|
18
|
+
interface ConvertOptions {
|
|
19
|
+
format: ImageFormat;
|
|
20
|
+
quality?: number;
|
|
21
|
+
}
|
|
22
|
+
interface RotateOptions {
|
|
23
|
+
degrees: number;
|
|
24
|
+
background?: string;
|
|
25
|
+
}
|
|
26
|
+
interface WatermarkOptions {
|
|
27
|
+
text: string;
|
|
28
|
+
fontSize?: number;
|
|
29
|
+
color?: string;
|
|
30
|
+
opacity?: number;
|
|
31
|
+
position?: 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
32
|
+
}
|
|
33
|
+
interface ImageMetadata {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
format: string;
|
|
37
|
+
channels: number;
|
|
38
|
+
space: string;
|
|
39
|
+
depth: string;
|
|
40
|
+
density?: number;
|
|
41
|
+
hasAlpha: boolean;
|
|
42
|
+
sizeBytes: number;
|
|
43
|
+
}
|
|
44
|
+
interface ImageStats {
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
format: string;
|
|
48
|
+
channels: number;
|
|
49
|
+
hasAlpha: boolean;
|
|
50
|
+
sizeBytes: number;
|
|
51
|
+
megapixels: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function resize(file: Buffer | Uint8Array, options: ResizeOptions): Promise<Uint8Array>;
|
|
55
|
+
|
|
56
|
+
declare function crop(file: Buffer | Uint8Array, options: CropOptions): Promise<Uint8Array>;
|
|
57
|
+
declare function rotate(file: Buffer | Uint8Array, options: RotateOptions): Promise<Uint8Array>;
|
|
58
|
+
declare function flip(file: Buffer | Uint8Array): Promise<Uint8Array>;
|
|
59
|
+
declare function flop(file: Buffer | Uint8Array): Promise<Uint8Array>;
|
|
60
|
+
declare function grayscale(file: Buffer | Uint8Array): Promise<Uint8Array>;
|
|
61
|
+
declare function blur(file: Buffer | Uint8Array, sigma?: number): Promise<Uint8Array>;
|
|
62
|
+
|
|
63
|
+
declare function convert(file: Buffer | Uint8Array, options: ConvertOptions): Promise<Uint8Array>;
|
|
64
|
+
declare function compress(file: Buffer | Uint8Array, options?: CompressOptions): Promise<Uint8Array>;
|
|
65
|
+
|
|
66
|
+
declare function getMetadata(file: Buffer | Uint8Array): Promise<ImageMetadata>;
|
|
67
|
+
declare function getStats(file: Buffer | Uint8Array): Promise<ImageStats>;
|
|
68
|
+
|
|
69
|
+
type index_CompressOptions = CompressOptions;
|
|
70
|
+
type index_ConvertOptions = ConvertOptions;
|
|
71
|
+
type index_CropOptions = CropOptions;
|
|
72
|
+
type index_ImageFormat = ImageFormat;
|
|
73
|
+
type index_ImageMetadata = ImageMetadata;
|
|
74
|
+
type index_ImageStats = ImageStats;
|
|
75
|
+
type index_ResizeOptions = ResizeOptions;
|
|
76
|
+
type index_RotateOptions = RotateOptions;
|
|
77
|
+
type index_WatermarkOptions = WatermarkOptions;
|
|
78
|
+
declare const index_blur: typeof blur;
|
|
79
|
+
declare const index_compress: typeof compress;
|
|
80
|
+
declare const index_convert: typeof convert;
|
|
81
|
+
declare const index_crop: typeof crop;
|
|
82
|
+
declare const index_flip: typeof flip;
|
|
83
|
+
declare const index_flop: typeof flop;
|
|
84
|
+
declare const index_getMetadata: typeof getMetadata;
|
|
85
|
+
declare const index_getStats: typeof getStats;
|
|
86
|
+
declare const index_grayscale: typeof grayscale;
|
|
87
|
+
declare const index_resize: typeof resize;
|
|
88
|
+
declare const index_rotate: typeof rotate;
|
|
89
|
+
declare namespace index {
|
|
90
|
+
export { type index_CompressOptions as CompressOptions, type index_ConvertOptions as ConvertOptions, type index_CropOptions as CropOptions, type index_ImageFormat as ImageFormat, type index_ImageMetadata as ImageMetadata, type index_ImageStats as ImageStats, type index_ResizeOptions as ResizeOptions, type index_RotateOptions as RotateOptions, type index_WatermarkOptions as WatermarkOptions, index_blur as blur, index_compress as compress, index_convert as convert, index_crop as crop, index_flip as flip, index_flop as flop, index_getMetadata as getMetadata, index_getStats as getStats, index_grayscale as grayscale, index_resize as resize, index_rotate as rotate };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { type CompressOptions as C, type ImageFormat as I, type ResizeOptions as R, type WatermarkOptions as W, type ConvertOptions as a, type CropOptions as b, type ImageMetadata as c, type ImageStats as d, type RotateOptions as e, blur as f, compress as g, convert as h, index as i, crop as j, flip as k, flop as l, getMetadata as m, getStats as n, grayscale as o, rotate as p, resize as r };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
type ImageFormat = 'png' | 'jpeg' | 'webp' | 'gif' | 'tiff' | 'avif';
|
|
2
|
+
interface ResizeOptions {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
fit?: 'cover' | 'contain' | 'fill' | 'inside' | 'outside';
|
|
6
|
+
background?: string;
|
|
7
|
+
}
|
|
8
|
+
interface CropOptions {
|
|
9
|
+
left: number;
|
|
10
|
+
top: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
interface CompressOptions {
|
|
15
|
+
quality?: number;
|
|
16
|
+
format?: ImageFormat;
|
|
17
|
+
}
|
|
18
|
+
interface ConvertOptions {
|
|
19
|
+
format: ImageFormat;
|
|
20
|
+
quality?: number;
|
|
21
|
+
}
|
|
22
|
+
interface RotateOptions {
|
|
23
|
+
degrees: number;
|
|
24
|
+
background?: string;
|
|
25
|
+
}
|
|
26
|
+
interface WatermarkOptions {
|
|
27
|
+
text: string;
|
|
28
|
+
fontSize?: number;
|
|
29
|
+
color?: string;
|
|
30
|
+
opacity?: number;
|
|
31
|
+
position?: 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
32
|
+
}
|
|
33
|
+
interface ImageMetadata {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
format: string;
|
|
37
|
+
channels: number;
|
|
38
|
+
space: string;
|
|
39
|
+
depth: string;
|
|
40
|
+
density?: number;
|
|
41
|
+
hasAlpha: boolean;
|
|
42
|
+
sizeBytes: number;
|
|
43
|
+
}
|
|
44
|
+
interface ImageStats {
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
format: string;
|
|
48
|
+
channels: number;
|
|
49
|
+
hasAlpha: boolean;
|
|
50
|
+
sizeBytes: number;
|
|
51
|
+
megapixels: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function resize(file: Buffer | Uint8Array, options: ResizeOptions): Promise<Uint8Array>;
|
|
55
|
+
|
|
56
|
+
declare function crop(file: Buffer | Uint8Array, options: CropOptions): Promise<Uint8Array>;
|
|
57
|
+
declare function rotate(file: Buffer | Uint8Array, options: RotateOptions): Promise<Uint8Array>;
|
|
58
|
+
declare function flip(file: Buffer | Uint8Array): Promise<Uint8Array>;
|
|
59
|
+
declare function flop(file: Buffer | Uint8Array): Promise<Uint8Array>;
|
|
60
|
+
declare function grayscale(file: Buffer | Uint8Array): Promise<Uint8Array>;
|
|
61
|
+
declare function blur(file: Buffer | Uint8Array, sigma?: number): Promise<Uint8Array>;
|
|
62
|
+
|
|
63
|
+
declare function convert(file: Buffer | Uint8Array, options: ConvertOptions): Promise<Uint8Array>;
|
|
64
|
+
declare function compress(file: Buffer | Uint8Array, options?: CompressOptions): Promise<Uint8Array>;
|
|
65
|
+
|
|
66
|
+
declare function getMetadata(file: Buffer | Uint8Array): Promise<ImageMetadata>;
|
|
67
|
+
declare function getStats(file: Buffer | Uint8Array): Promise<ImageStats>;
|
|
68
|
+
|
|
69
|
+
type index_CompressOptions = CompressOptions;
|
|
70
|
+
type index_ConvertOptions = ConvertOptions;
|
|
71
|
+
type index_CropOptions = CropOptions;
|
|
72
|
+
type index_ImageFormat = ImageFormat;
|
|
73
|
+
type index_ImageMetadata = ImageMetadata;
|
|
74
|
+
type index_ImageStats = ImageStats;
|
|
75
|
+
type index_ResizeOptions = ResizeOptions;
|
|
76
|
+
type index_RotateOptions = RotateOptions;
|
|
77
|
+
type index_WatermarkOptions = WatermarkOptions;
|
|
78
|
+
declare const index_blur: typeof blur;
|
|
79
|
+
declare const index_compress: typeof compress;
|
|
80
|
+
declare const index_convert: typeof convert;
|
|
81
|
+
declare const index_crop: typeof crop;
|
|
82
|
+
declare const index_flip: typeof flip;
|
|
83
|
+
declare const index_flop: typeof flop;
|
|
84
|
+
declare const index_getMetadata: typeof getMetadata;
|
|
85
|
+
declare const index_getStats: typeof getStats;
|
|
86
|
+
declare const index_grayscale: typeof grayscale;
|
|
87
|
+
declare const index_resize: typeof resize;
|
|
88
|
+
declare const index_rotate: typeof rotate;
|
|
89
|
+
declare namespace index {
|
|
90
|
+
export { type index_CompressOptions as CompressOptions, type index_ConvertOptions as ConvertOptions, type index_CropOptions as CropOptions, type index_ImageFormat as ImageFormat, type index_ImageMetadata as ImageMetadata, type index_ImageStats as ImageStats, type index_ResizeOptions as ResizeOptions, type index_RotateOptions as RotateOptions, type index_WatermarkOptions as WatermarkOptions, index_blur as blur, index_compress as compress, index_convert as convert, index_crop as crop, index_flip as flip, index_flop as flop, index_getMetadata as getMetadata, index_getStats as getStats, index_grayscale as grayscale, index_resize as resize, index_rotate as rotate };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { type CompressOptions as C, type ImageFormat as I, type ResizeOptions as R, type WatermarkOptions as W, type ConvertOptions as a, type CropOptions as b, type ImageMetadata as c, type ImageStats as d, type RotateOptions as e, blur as f, compress as g, convert as h, index as i, crop as j, flip as k, flop as l, getMetadata as m, getStats as n, grayscale as o, rotate as p, resize as r };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
type ColorFormat = 'hex' | 'rgb' | 'hsl';
|
|
2
|
+
interface RGB {
|
|
3
|
+
r: number;
|
|
4
|
+
g: number;
|
|
5
|
+
b: number;
|
|
6
|
+
}
|
|
7
|
+
interface HSL {
|
|
8
|
+
h: number;
|
|
9
|
+
s: number;
|
|
10
|
+
l: number;
|
|
11
|
+
}
|
|
12
|
+
interface ColorConversionResult {
|
|
13
|
+
hex: string;
|
|
14
|
+
rgb: string;
|
|
15
|
+
hsl: string;
|
|
16
|
+
values: {
|
|
17
|
+
rgb: RGB;
|
|
18
|
+
hsl: HSL;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface ContrastResult {
|
|
22
|
+
ratio: number;
|
|
23
|
+
formatted: string;
|
|
24
|
+
aa: {
|
|
25
|
+
normal: boolean;
|
|
26
|
+
large: boolean;
|
|
27
|
+
};
|
|
28
|
+
aaa: {
|
|
29
|
+
normal: boolean;
|
|
30
|
+
large: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
type PaletteType = 'complementary' | 'analogous' | 'triadic' | 'shades' | 'tints';
|
|
34
|
+
interface PaletteOptions {
|
|
35
|
+
type: PaletteType;
|
|
36
|
+
count?: number;
|
|
37
|
+
}
|
|
38
|
+
interface BlendResult {
|
|
39
|
+
color: ColorConversionResult;
|
|
40
|
+
ratio: number;
|
|
41
|
+
}
|
|
42
|
+
interface ColorNameResult {
|
|
43
|
+
name: string;
|
|
44
|
+
exact: boolean;
|
|
45
|
+
hex: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare function hexToRgb(hex: string): RGB;
|
|
49
|
+
declare function hslToRgb(h: number, s: number, l: number): RGB;
|
|
50
|
+
declare function rgbToHsl(r: number, g: number, b: number): HSL;
|
|
51
|
+
declare function rgbToHex(r: number, g: number, b: number): string;
|
|
52
|
+
declare function parseColor(input: string): ColorConversionResult;
|
|
53
|
+
|
|
54
|
+
declare function convertColor(input: string, to: ColorFormat): string;
|
|
55
|
+
|
|
56
|
+
declare function contrastRatio(color1: string, color2: string): ContrastResult;
|
|
57
|
+
|
|
58
|
+
declare function generatePalette(base: string, options: PaletteOptions): ColorConversionResult[];
|
|
59
|
+
|
|
60
|
+
declare function blendColors(color1: string, color2: string, ratio?: number): BlendResult;
|
|
61
|
+
|
|
62
|
+
declare function colorName(input: string): ColorNameResult;
|
|
63
|
+
|
|
64
|
+
type index_BlendResult = BlendResult;
|
|
65
|
+
type index_ColorConversionResult = ColorConversionResult;
|
|
66
|
+
type index_ColorFormat = ColorFormat;
|
|
67
|
+
type index_ColorNameResult = ColorNameResult;
|
|
68
|
+
type index_ContrastResult = ContrastResult;
|
|
69
|
+
type index_HSL = HSL;
|
|
70
|
+
type index_PaletteOptions = PaletteOptions;
|
|
71
|
+
type index_PaletteType = PaletteType;
|
|
72
|
+
type index_RGB = RGB;
|
|
73
|
+
declare const index_blendColors: typeof blendColors;
|
|
74
|
+
declare const index_colorName: typeof colorName;
|
|
75
|
+
declare const index_contrastRatio: typeof contrastRatio;
|
|
76
|
+
declare const index_convertColor: typeof convertColor;
|
|
77
|
+
declare const index_generatePalette: typeof generatePalette;
|
|
78
|
+
declare const index_hexToRgb: typeof hexToRgb;
|
|
79
|
+
declare const index_hslToRgb: typeof hslToRgb;
|
|
80
|
+
declare const index_parseColor: typeof parseColor;
|
|
81
|
+
declare const index_rgbToHex: typeof rgbToHex;
|
|
82
|
+
declare const index_rgbToHsl: typeof rgbToHsl;
|
|
83
|
+
declare namespace index {
|
|
84
|
+
export { type index_BlendResult as BlendResult, type index_ColorConversionResult as ColorConversionResult, type index_ColorFormat as ColorFormat, type index_ColorNameResult as ColorNameResult, type index_ContrastResult as ContrastResult, type index_HSL as HSL, type index_PaletteOptions as PaletteOptions, type index_PaletteType as PaletteType, type index_RGB as RGB, index_blendColors as blendColors, index_colorName as colorName, index_contrastRatio as contrastRatio, index_convertColor as convertColor, index_generatePalette as generatePalette, index_hexToRgb as hexToRgb, index_hslToRgb as hslToRgb, index_parseColor as parseColor, index_rgbToHex as rgbToHex, index_rgbToHsl as rgbToHsl };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { type BlendResult as B, type ColorConversionResult as C, type HSL as H, type PaletteOptions as P, type RGB as R, type ColorFormat as a, type ColorNameResult as b, type ContrastResult as c, type PaletteType as d, blendColors as e, colorName as f, contrastRatio as g, convertColor as h, index as i, generatePalette as j, hexToRgb as k, hslToRgb as l, rgbToHsl as m, parseColor as p, rgbToHex as r };
|