dozy 1.0.49 → 1.0.51

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.
Files changed (42) hide show
  1. package/README-COLOR.md +117 -0
  2. package/dist/assets/fonts/forthecode.ttf +0 -0
  3. package/dist/assets/fonts/forthecode.woff2 +0 -0
  4. package/dist/assets/fonts/forthefont.ttf +0 -0
  5. package/dist/assets/fonts/forthefont.woff2 +0 -0
  6. package/dist/assets/fonts/xaifont.ttf +0 -0
  7. package/dist/assets/fonts/xaifont.woff2 +0 -0
  8. package/dist/assets/reset.css +3 -3
  9. package/dist/chunk-7Q6CTFBS.js +2 -0
  10. package/dist/chunk-7Q6CTFBS.js.map +1 -0
  11. package/dist/index.d.ts +226 -229
  12. package/dist/index.js +48 -58
  13. package/dist/index.js.map +1 -7
  14. package/dist/zod.d.ts +2 -0
  15. package/dist/zod.js +24 -0
  16. package/dist/zod.js.map +1 -0
  17. package/package.json +12 -15
  18. package/dist/Dozy.d.ts +0 -9
  19. package/dist/Dozy.d.ts.map +0 -1
  20. package/dist/Functions.d.ts +0 -48
  21. package/dist/Functions.d.ts.map +0 -1
  22. package/dist/Test.d.ts +0 -2
  23. package/dist/Test.d.ts.map +0 -1
  24. package/dist/WebFunctions.d.ts +0 -20
  25. package/dist/WebFunctions.d.ts.map +0 -1
  26. package/dist/index.d.ts.map +0 -1
  27. package/dist/modules/Color.d.ts +0 -75
  28. package/dist/modules/Color.d.ts.map +0 -1
  29. package/dist/modules/EnableScaler.d.ts +0 -39
  30. package/dist/modules/EnableScaler.d.ts.map +0 -1
  31. package/dist/modules/Interface.d.ts +0 -4
  32. package/dist/modules/Interface.d.ts.map +0 -1
  33. package/dist/modules/Store.d.ts +0 -83
  34. package/dist/modules/Store.d.ts.map +0 -1
  35. package/dist/modules/XCode.d.ts +0 -9
  36. package/dist/modules/XCode.d.ts.map +0 -1
  37. package/dist/modules/gens/Gens.d.ts +0 -18
  38. package/dist/modules/gens/Gens.d.ts.map +0 -1
  39. package/dist/modules/gens/GensDirectives.d.ts +0 -4
  40. package/dist/modules/gens/GensDirectives.d.ts.map +0 -1
  41. package/dist/modules/gens/GensStyleIds.d.ts +0 -3
  42. package/dist/modules/gens/GensStyleIds.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,187 +1,194 @@
1
- import { default as axios } from 'axios';
2
- import { Options, default as imageCompression$1 } from 'browser-image-compression';
3
- import * as ColorLib from 'culori';
1
+ import { Options } from 'browser-image-compression';
2
+ export * from 'browser-image-compression';
3
+ export { default as imageCompression } from 'browser-image-compression';
4
4
  import { Color } from 'culori';
5
- import * as l from 'lodash-es';
6
- import { default as z } from 'zod';
5
+ import * as culori from 'culori';
6
+ export { culori as ColorLib };
7
+ export * from 'axios';
8
+ export { default as axios } from 'axios';
9
+ import * as lodashEs from 'lodash-es';
10
+ export { lodashEs as l };
11
+ export { default as Cryptojs } from 'crypto-js';
12
+ export { customAlphabet, nanoid, urlAlphabet } from 'nanoid';
7
13
 
8
- export type DozyConfigItem = {};
9
- export type DozyConfig = Partial<DozyConfigItem>;
14
+ type DozyConfigItem = {};
15
+ type DozyConfig = Partial<DozyConfigItem>;
10
16
  declare class Dozy {
11
- loadConfig(config: DozyConfig): void;
12
- config: DozyConfig;
17
+ loadConfig(config: DozyConfig): void;
18
+ config: DozyConfig;
13
19
  }
14
- export declare const dozy: Dozy;
15
- export declare function $isObject(value: unknown): value is Record<string, unknown>;
16
- export declare function $deepClone<T>(value: T): T;
17
- export declare function $capitalize(s: string): string;
18
- export declare function $clamp(n: number, min: number, max: number): number;
19
- export declare function $loadOpt(thiz: Object, obj?: Object): any;
20
- export declare function errMsg(msg: string): void;
21
- export declare function $pureText(fragment: string): string;
22
- export declare function $oc(o: any): o is Record<string, any>;
23
- export declare function $s(s: any, val?: boolean): s is string;
24
- export declare function $sc(n: any): n is number;
25
- export declare function $lplus(v: number, t: number, plus?: number): number;
26
- export declare function $lindex(arr: Array<any>, i: number): any;
27
- export declare function $validName(id?: string): id is string;
28
- export type FileType = "text" | "image" | "audio" | "video" | "font" | "unknown";
29
- export declare function $getFileType(fileName: string): FileType;
30
- export declare function $isValidOrBriefURL(url?: string): boolean;
31
- export declare function $getTimeString(stampTicks: number, short: boolean, unitS?: boolean, exact?: boolean): string;
32
- export declare function $magic(start: number, end?: number): number;
33
- export declare function $randomByte(len?: number): string;
34
- export declare function $rsValue(s?: string, path?: string, def?: any): any;
35
- export declare function $rsetValue(obj: Object, path: string, value: any): any;
36
- export declare function $rvalue(obj: Object, path?: string, def?: any, sdef?: boolean, set?: boolean): any;
37
- export declare function $hasKey(obj: Object, key: string): boolean;
38
- export declare function maybeString(a: any, maxLength?: number): string;
39
- export declare function errToString(e: unknown): string;
40
- export declare function smallChance(): boolean;
41
- export declare function $isPlainClass(obj: any, clas?: Function): boolean;
42
- export declare function $encodeUnicodeToBase64(str: string): string;
43
- export declare function $decodeBase64ToUnicode(base64: string): string;
44
- export declare function $fileToBase64(file: File): Promise<string>;
45
- export declare function $decodeBase64ToBinary(base64: string): Uint8Array<ArrayBuffer>;
46
- export declare function $setRange(v: number, min?: number, max?: number): number;
47
- export declare function $inRange2(v: number, mid: number, range: number): boolean;
48
- export declare function $inRange(v: number, min?: number, max?: number): boolean;
49
- export declare function $strings(str: string, cut?: string): string[];
50
- export declare function $genSSF(f: (s1: string, s2: string) => string, gap?: string): (...args: string[]) => string;
51
- export declare function xtrim(s: string): string;
52
- export declare function $if<T extends string | number | symbol, V>(val: T, fs: Record<T, Function | V>): any;
53
- export declare function $lastIndex(items: Array<any> | number): number;
54
- export declare function $replaceHolesWithUndefined<T>(arr: Array<T | undefined>): Array<T | undefined>;
55
- export declare function $stringToRange(str: string, max: number): number;
56
- export declare function $rmvSlash(path: string): string;
57
- export declare function $parseParams(path: string): (string | undefined)[];
58
- export declare function $formatWithCommas(num: number | string): string;
59
- export declare function $isValidEmailWithUnicode(email?: string): boolean;
60
- export declare function $checkValidEmailWithUnicode(email?: string): void;
61
- export declare function $formatDate(dateInput: string | number | Date): string;
62
- export declare function web$setPathTarget(s: string): void;
63
- export declare function web$pathStartData(): {
64
- href: string;
65
- origin: string;
66
- target: string;
67
- host: string;
68
- path: string;
69
- search: string;
70
- standardJump: boolean;
20
+ declare const dozy: Dozy;
21
+
22
+ declare function $isObject(value: unknown): value is Record<string, unknown>;
23
+ declare function $deepClone<T>(value: T): T;
24
+ declare function $capitalize(s: string): string;
25
+ declare function $clamp(n: number, min: number, max: number): number;
26
+ declare function $loadOpt(thiz: Object, obj?: Object): any;
27
+ declare function errMsg(msg: string): void;
28
+ declare function $pureText(fragment: string): string;
29
+ declare function $oc(o: any): o is Record<string, any>;
30
+ declare function $s(s: any, val?: boolean): s is string;
31
+ declare function $sc(n: any): n is number;
32
+ declare function $lplus(v: number, t: number, plus?: number): number;
33
+ declare function $lindex(arr: Array<any>, i: number): any;
34
+ declare function $validName(id?: string): id is string;
35
+ type FileType = 'text' | 'image' | 'audio' | 'video' | 'font' | 'unknown';
36
+ declare function $getFileType(fileName: string): FileType;
37
+ declare function $isValidOrBriefURL(url?: string): boolean;
38
+ declare function $getTimeString(stampTicks: number, short: boolean, unitS?: boolean, exact?: boolean): string;
39
+ declare function $magic(start: number, end?: number): number;
40
+ declare function $randomByte(len?: number): string;
41
+ declare function $rsValue(s?: string, path?: string, def?: any): any;
42
+ declare function $rsetValue(obj: Object, path: string, value: any): any;
43
+ declare function $rvalue(obj: Object, path?: string, def?: any, sdef?: boolean, set?: boolean): any;
44
+ declare function $hasKey(obj: Object, key: string): boolean;
45
+ declare function maybeString(a: any, maxLength?: number): string;
46
+ declare function errToString(e: unknown): string;
47
+ declare function smallChance(): boolean;
48
+ declare function $isPlainClass(obj: any, clas?: Function): boolean;
49
+ declare function $encodeUnicodeToBase64(str: string): string;
50
+ declare function $decodeBase64ToUnicode(base64: string): string;
51
+ declare function $fileToBase64(file: File): Promise<string>;
52
+ declare function $decodeBase64ToBinary(base64: string): Uint8Array<ArrayBuffer>;
53
+ declare function $setRange(v: number, min?: number, max?: number): number;
54
+ declare function $inRange2(v: number, mid: number, range: number): boolean;
55
+ declare function $inRange(v: number, min?: number, max?: number): boolean;
56
+ declare function $strings(str: string, cut?: string): string[];
57
+ declare function $genSSF(f: (s1: string, s2: string) => string, gap?: string): (...args: string[]) => string;
58
+ declare function xtrim(s: string): string;
59
+ declare function $if<T extends string | number | symbol, V>(val: T, fs: Record<T, Function | V>): any;
60
+ declare function $lastIndex(items: Array<any> | number): number;
61
+ declare function $replaceHolesWithUndefined<T>(arr: Array<T | undefined>): Array<T | undefined>;
62
+ declare function $stringToRange(str: string, max: number): number;
63
+ declare function $rmvSlash(path: string): string;
64
+ declare function $parseParams(path: string): (string | undefined)[];
65
+ declare function $formatWithCommas(num: number | string): string;
66
+ declare function $isValidEmailWithUnicode(email?: string): boolean;
67
+ declare function $checkValidEmailWithUnicode(email?: string): void;
68
+ declare function $formatDate(dateInput: string | number | Date): string;
69
+
70
+ declare function web$setPathTarget(s: string): void;
71
+ declare function web$pathStartData(): {
72
+ href: string;
73
+ origin: string;
74
+ target: string;
75
+ host: string;
76
+ path: string;
77
+ search: string;
78
+ standardJump: boolean;
71
79
  };
72
- export declare function web$enableProdProtector(): void;
73
- export declare function web$enableHttpsRedirect(): void;
74
- export declare function web$redirectToDomain(newDomain: string): void;
75
- export declare function $copy(content: string): Promise<boolean | undefined>;
76
- export declare function $fallbackCopy(content: string): boolean;
77
- export declare function web$encodeURI(hash?: string): string;
78
- export declare function $compressImage(file: File, options?: Options): Promise<File>;
79
- export declare function $compressImage(files: File[], options?: Options): Promise<File[]>;
80
- export declare const $jsonParse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any;
81
- export declare const $jsonStringify: {
82
- (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
83
- (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
80
+ declare function web$enableProdProtector(): void;
81
+ declare function web$enableHttpsRedirect(): void;
82
+ declare function web$redirectToDomain(newDomain: string): void;
83
+ declare function $copy(content: string): Promise<boolean | undefined>;
84
+ declare function $fallbackCopy(content: string): boolean;
85
+ declare function web$encodeURI(hash?: string): string;
86
+ declare function $compressImage(file: File, options?: Options): Promise<File>;
87
+ declare function $compressImage(files: File[], options?: Options): Promise<File[]>;
88
+
89
+ declare const $jsonParse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any;
90
+ declare const $jsonStringify: {
91
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
92
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
84
93
  };
85
- export declare const $keys: <T extends object>(obj: T) => (keyof T & string)[];
86
- export declare const $entries: <T extends object>(obj: T) => [
87
- keyof T & string,
88
- T[keyof T]
89
- ][];
90
- export declare const $values: {
91
- <T>(o: {
92
- [s: string]: T;
93
- } | ArrayLike<T>): T[];
94
- (o: {}): any[];
94
+ declare const $keys: <T extends object>(obj: T) => (keyof T & string)[];
95
+ declare const $entries: <T extends object>(obj: T) => [keyof T & string, T[keyof T]][];
96
+ declare const $values: {
97
+ <T>(o: {
98
+ [s: string]: T;
99
+ } | ArrayLike<T>): T[];
100
+ (o: {}): any[];
95
101
  };
96
- export declare const $assign: {
97
- <T extends {}, U>(target: T, source: U): T & U;
98
- <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
99
- <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
100
- (target: object, ...sources: any[]): any;
102
+ declare const $assign: {
103
+ <T extends {}, U>(target: T, source: U): T & U;
104
+ <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
105
+ <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
106
+ (target: object, ...sources: any[]): any;
101
107
  };
102
- export declare const $defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
103
- export declare const $freeze: {
104
- <T extends Function>(f: T): T;
105
- <T extends {
106
- [idx: string]: U | null | undefined | object;
107
- }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
108
- <T>(o: T): Readonly<T>;
108
+ declare const $defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
109
+ declare const $freeze: {
110
+ <T extends Function>(f: T): T;
111
+ <T extends {
112
+ [idx: string]: U | null | undefined | object;
113
+ }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
114
+ <T>(o: T): Readonly<T>;
109
115
  };
110
- export declare const $is: (value1: any, value2: any) => boolean;
111
- export declare const $arrayFrom: {
112
- <T>(arrayLike: ArrayLike<T>): T[];
113
- <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
114
- <T>(iterable: Iterable<T> | ArrayLike<T>): T[];
115
- <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
116
+ declare const $is: (value1: any, value2: any) => boolean;
117
+ declare const $arrayFrom: {
118
+ <T>(arrayLike: ArrayLike<T>): T[];
119
+ <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
120
+ <T>(iterable: Iterable<T> | ArrayLike<T>): T[];
121
+ <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
116
122
  };
117
- export declare const $arrayIsArray: (arg: any) => arg is any[];
118
- export declare const $stringFromCharCode: (...codes: number[]) => string;
119
- export declare const $stringFromCodePoint: (...codePoints: number[]) => string;
120
- export declare const $numberIsNaN: (number: unknown) => boolean;
121
- export declare const $numberIsFinite: (number: unknown) => boolean;
122
- export declare const $math: Math;
123
- export declare const $now: () => number;
124
- export declare const $date: DateConstructor;
125
- export declare const $promise: PromiseConstructor;
126
- export declare const $URL: {
127
- new (url: string | URL, base?: string | URL): URL;
128
- prototype: URL;
129
- canParse(url: string | URL, base?: string | URL): boolean;
130
- createObjectURL(obj: Blob | MediaSource): string;
131
- parse(url: string | URL, base?: string | URL): URL | null;
132
- revokeObjectURL(url: string): void;
123
+ declare const $arrayIsArray: (arg: any) => arg is any[];
124
+ declare const $stringFromCharCode: (...codes: number[]) => string;
125
+ declare const $stringFromCodePoint: (...codePoints: number[]) => string;
126
+ declare const $numberIsNaN: (number: unknown) => boolean;
127
+ declare const $numberIsFinite: (number: unknown) => boolean;
128
+ declare const $math: Math;
129
+ declare const $now: () => number;
130
+ declare const $date: DateConstructor;
131
+ declare const $promise: PromiseConstructor;
132
+ declare const $URL: {
133
+ new (url: string | URL, base?: string | URL): URL;
134
+ prototype: URL;
135
+ canParse(url: string | URL, base?: string | URL): boolean;
136
+ createObjectURL(obj: Blob | MediaSource): string;
137
+ parse(url: string | URL, base?: string | URL): URL | null;
138
+ revokeObjectURL(url: string): void;
133
139
  };
134
- export declare const $URLSearchParams: {
135
- new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
136
- prototype: URLSearchParams;
140
+ declare const $URLSearchParams: {
141
+ new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
142
+ prototype: URLSearchParams;
137
143
  };
138
- export declare const $clone: typeof structuredClone;
139
- export declare const $window: (Window & typeof globalThis) | undefined;
140
- export declare const $document: Document | undefined;
141
- export declare const $location: Location | undefined;
142
- export declare const $open: (((url?: string | URL, target?: string, features?: string) => WindowProxy | null) & typeof open) | undefined;
143
- export declare const $setTimeout: (((handler: TimerHandler, timeout?: number, ...arguments: any[]) => number) & typeof setTimeout) | undefined;
144
- export declare const $clearTimeout: (((id: number | undefined) => void) & typeof clearTimeout) | undefined;
145
- export declare const $setInterval: (((handler: TimerHandler, timeout?: number, ...arguments: any[]) => number) & typeof setInterval) | undefined;
146
- export declare const $clearInterval: (((id: number | undefined) => void) & typeof clearInterval) | undefined;
147
- export declare const $fetch: typeof fetch | undefined;
148
- export declare const $Headers: {
149
- new (init?: HeadersInit): Headers;
150
- prototype: Headers;
144
+ declare const $clone: typeof structuredClone;
145
+ declare const $window: (Window & typeof globalThis) | undefined;
146
+ declare const $document: Document | undefined;
147
+ declare const $location: Location | undefined;
148
+ declare const $open: (((url?: string | URL, target?: string, features?: string) => WindowProxy | null) & typeof open) | undefined;
149
+ declare const $setTimeout: (((handler: TimerHandler, timeout?: number, ...arguments: any[]) => number) & typeof setTimeout) | undefined;
150
+ declare const $clearTimeout: (((id: number | undefined) => void) & typeof clearTimeout) | undefined;
151
+ declare const $setInterval: (((handler: TimerHandler, timeout?: number, ...arguments: any[]) => number) & typeof setInterval) | undefined;
152
+ declare const $clearInterval: (((id: number | undefined) => void) & typeof clearInterval) | undefined;
153
+ declare const $fetch: typeof fetch | undefined;
154
+ declare const $Headers: {
155
+ new (init?: HeadersInit): Headers;
156
+ prototype: Headers;
151
157
  } | undefined;
152
- export declare const $Request: {
153
- new (input: RequestInfo | URL, init?: RequestInit): Request;
154
- prototype: Request;
158
+ declare const $Request: {
159
+ new (input: RequestInfo | URL, init?: RequestInit): Request;
160
+ prototype: Request;
155
161
  } | undefined;
156
- export declare const $Response: {
157
- new (body?: BodyInit | null, init?: ResponseInit): Response;
158
- prototype: Response;
159
- error(): Response;
160
- json(data: any, init?: ResponseInit): Response;
161
- redirect(url: string | URL, status?: number): Response;
162
+ declare const $Response: {
163
+ new (body?: BodyInit | null, init?: ResponseInit): Response;
164
+ prototype: Response;
165
+ error(): Response;
166
+ json(data: any, init?: ResponseInit): Response;
167
+ redirect(url: string | URL, status?: number): Response;
162
168
  } | undefined;
163
- export declare const $log: <T>(a?: T, ...x: any[]) => T | undefined;
164
- export declare const $crypto: Crypto | undefined;
165
- export type ScaleComputer = undefined | ((scaler: Scaler) => number);
166
- export type ScaleIniter = (scaler: Scaler) => void;
169
+ declare const $log: <T>(a?: T, ...x: any[]) => T | undefined;
170
+ declare const $crypto: Crypto | undefined;
171
+
172
+ type ScaleComputer = undefined | ((scaler: Scaler) => number);
173
+ type ScaleIniter = (scaler: Scaler) => void;
167
174
  declare class Scaler {
168
- #private;
169
- heightElement: HTMLElement;
170
- widthElement: HTMLElement;
171
- set base(val: number);
172
- get base(): number;
173
- set mainScale(val: number);
174
- get mainScale(): number;
175
- get scaleComputer(): ScaleComputer;
176
- set scaleComputer(val: ScaleComputer);
177
- onMainScaleChange?: (scale: number) => void;
178
- innerContainer: HTMLElement;
179
- constructor(innerContainer: HTMLElement);
175
+ #private;
176
+ heightElement: HTMLElement;
177
+ widthElement: HTMLElement;
178
+ set base(val: number);
179
+ get base(): number;
180
+ set mainScale(val: number);
181
+ get mainScale(): number;
182
+ get scaleComputer(): ScaleComputer;
183
+ set scaleComputer(val: ScaleComputer);
184
+ onMainScaleChange?: (scale: number) => void;
185
+ innerContainer: HTMLElement;
186
+ constructor(innerContainer: HTMLElement);
180
187
  }
181
- export declare function enableScaler(outerContainer: HTMLElement, initer?: ScaleIniter, innerContainer?: HTMLElement): {
182
- resizer: () => void;
183
- clean: () => void;
184
- setBase: (val: number) => void;
188
+ declare function enableScaler(outerContainer: HTMLElement, initer?: ScaleIniter, innerContainer?: HTMLElement): {
189
+ resizer: () => void;
190
+ clean: () => void;
191
+ setBase: (val: number) => void;
185
192
  } | undefined;
186
193
  /**
187
194
  * Hello
@@ -190,51 +197,57 @@ export declare function enableScaler(outerContainer: HTMLElement, initer?: Scale
190
197
  * @param maxAspectRatio 请输入 Number(0.57) && 0.64
191
198
  * @returns
192
199
  */
193
- export declare const standardIniter: (args: {
194
- maxAspectRatio?: number;
195
- setFullScreenWidth?: (x: number) => void;
196
- setFullContentHeight?: (x: number) => void;
197
- setMainScale?: (x: number) => void;
198
- heightElement?: HTMLElement;
199
- widthElement?: HTMLElement;
200
- base?: number;
200
+ declare const standardIniter: (args: {
201
+ maxAspectRatio?: number;
202
+ setFullScreenWidth?: (x: number) => void;
203
+ setFullContentHeight?: (x: number) => void;
204
+ setMainScale?: (x: number) => void;
205
+ heightElement?: HTMLElement;
206
+ widthElement?: HTMLElement;
207
+ base?: number;
201
208
  }) => ScaleIniter;
202
- export declare class StringObfuscator {
203
- key: string;
204
- length: number;
205
- constructor(key: string, length?: number);
206
- xors(str: string, key: string): string;
207
- en(input: string): string;
208
- de(obfuscated: string): string;
209
+
210
+ declare class StringObfuscator {
211
+ key: string;
212
+ length: number;
213
+ constructor(key: string, length?: number);
214
+ xors(str: string, key: string): string;
215
+ en(input: string): string;
216
+ de(obfuscated: string): string;
209
217
  }
210
- export type Items<T> = {
211
- [key: string]: T;
218
+
219
+ type Items<T> = {
220
+ [key: string]: T;
212
221
  };
213
- export declare function $escapeHTML(str: string): string;
214
- export declare class RainbowGen {
215
- i: number;
216
- ten: number;
217
- static staticRainbowHTMLRaw(text: string, dark?: boolean, offset?: number): string;
218
- static rainbowHTMLRaw(text: string, version?: number, offset?: number): string;
219
- backAStep(): this;
220
- getColorValue(): string;
221
- versions: number[];
222
- getStyleId(version: number): string;
223
- constructor(useTimes?: number);
222
+
223
+ declare function $escapeHTML(str: string): string;
224
+ declare class RainbowGen {
225
+ i: number;
226
+ ten: number;
227
+ static staticRainbowHTMLRaw(text: string, dark?: boolean, offset?: number): string;
228
+ static rainbowHTMLRaw(text: string, version?: number, offset?: number): string;
229
+ backAStep(): this;
230
+ getColorValue(): string;
231
+ versions: number[];
232
+ getStyleId(version: number): string;
233
+ constructor(useTimes?: number);
224
234
  }
225
- export declare function boxShadow(color?: string): string;
226
- export declare function textShadow(color?: string, focus?: boolean, removeName?: boolean): string;
227
- export declare function s(literature: string, ...args: any[]): string;
228
- export declare function getColorMap(dark?: boolean): string[];
229
- export declare function Gens(literature: string, ...args: any[]): string;
230
- export declare let _res: (x: string) => string;
231
- export declare function __GensDirectives(): Items<(...args: string[]) => string>;
235
+ declare function boxShadow(color?: string): string;
236
+ declare function textShadow(color?: string, focus?: boolean, removeName?: boolean): string;
237
+ declare function s(literature: string, ...args: any[]): string;
238
+ declare function getColorMap(dark?: boolean): string[];
239
+ declare function Gens(literature: string, ...args: any[]): string;
240
+
241
+ declare let _res: (x: string) => string;
242
+
243
+ declare function __GensDirectives(): Items<(...args: string[]) => string>;
244
+
232
245
  /**
233
246
  * Register a custom color alias.
234
247
  * @param name The name of the alias (e.g., 'abc', 'myColor')
235
248
  * @param color The valid color string it maps to (e.g., '#ff0000', 'red')
236
249
  */
237
- export declare function registerCustomColor(name: string, color: string): void;
250
+ declare function registerCustomColor(name: string, color: string): void;
238
251
  /**
239
252
  * Smartly parses a color string.
240
253
  * Supports:
@@ -247,18 +260,18 @@ export declare function registerCustomColor(name: string, color: string): void;
247
260
  * @param fallback Optional fallback color string if parsing fails.
248
261
  * @returns The parsed Color object or undefined if invalid.
249
262
  */
250
- export declare function smartParse(input: string | Color | any, fallback?: string): Color | undefined;
263
+ declare function smartParse(input: string | Color | any, fallback?: string): Color | undefined;
251
264
  /**
252
265
  * Smartly parses a color and returns a CSS string.
253
266
  * Defaults to Hex for sRGB colors, or CSS function for others (like oklch).
254
267
  * @param input The color string or object.
255
268
  */
256
- export declare function smartString(input: string | Color | any, fallback?: string): string | undefined;
269
+ declare function smartString(input: string | Color | any, fallback?: string): string | undefined;
257
270
  /**
258
271
  * Check if a color string is valid (smartly).
259
272
  * @param input The color string or object.
260
273
  */
261
- export declare function isValidColor(input: string | Color | any): boolean;
274
+ declare function isValidColor(input: string | Color | any): boolean;
262
275
  /**
263
276
  * Calculates the brightness of a color.
264
277
  * Uses the Rec. 601 luma formula: (R * 299 + G * 587 + B * 114) / 1000.
@@ -267,7 +280,7 @@ export declare function isValidColor(input: string | Color | any): boolean;
267
280
  * @param input The color string or object to check.
268
281
  * @returns The brightness value (0-1), or 0 if invalid.
269
282
  */
270
- export declare function getBrightness(input: string | Color | any): number;
283
+ declare function getBrightness(input: string | Color | any): number;
271
284
  /**
272
285
  * Converts a color to an RGBA array [r, g, b, a].
273
286
  * RGB values are 0-255, Alpha is 0-1.
@@ -275,18 +288,13 @@ export declare function getBrightness(input: string | Color | any): number;
275
288
  * @param input The color string or object to convert.
276
289
  * @returns [r, g, b, a] or undefined if invalid.
277
290
  */
278
- export declare function toRgbaArray(input: string | Color | any): [
279
- number,
280
- number,
281
- number,
282
- number
283
- ] | undefined;
291
+ declare function toRgbaArray(input: string | Color | any): [number, number, number, number] | undefined;
284
292
  /**
285
293
  * Converts a color to a Hex string.
286
294
  * @param input The color string or object.
287
295
  * @returns Hex string (e.g. #ff0000) or undefined.
288
296
  */
289
- export declare function toHexString(input: string | Color | any): string | undefined;
297
+ declare function toHexString(input: string | Color | any): string | undefined;
290
298
  /**
291
299
  * Converts a color to an RGB/RGBA string.
292
300
  * Uses modern comma-separated syntax for compatibility if preferred, or standard CSS.
@@ -296,7 +304,7 @@ export declare function toHexString(input: string | Color | any): string | undef
296
304
  * @param input The color string or object.
297
305
  * @returns RGB/RGBA string or undefined.
298
306
  */
299
- export declare function toRgbString(input: string | Color | any): string | undefined;
307
+ declare function toRgbString(input: string | Color | any): string | undefined;
300
308
  /**
301
309
  * Converts a color to an HSL/HSLA string.
302
310
  * Forces legacy comma-separated syntax: hsl(h, s%, l%) or hsla(h, s%, l%, a).
@@ -304,19 +312,8 @@ export declare function toRgbString(input: string | Color | any): string | undef
304
312
  * @param input The color string or object.
305
313
  * @returns HSL/HSLA string or undefined.
306
314
  */
307
- export declare function toHslString(input: string | Color | any): string | undefined;
308
- export declare const DOZY = "1.0.49";
309
- export * from "browser-image-compression";
310
- export * from "axios";
311
- export * from "zod";
315
+ declare function toHslString(input: string | Color | any): string | undefined;
312
316
 
313
- export {
314
- ColorLib,
315
- Options,
316
- axios,
317
- imageCompression$1 as imageCompression,
318
- l,
319
- z,
320
- };
317
+ declare const DOZY = "1.0.51";
321
318
 
322
- export {};
319
+ export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatWithCommas, $freeze, $genSSF, $getFileType, $getTimeString, $hasKey, $if, $inRange, $inRange2, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $validName, $values, $window, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Items, RainbowGen, type ScaleComputer, type ScaleIniter, StringObfuscator, __GensDirectives, _res, boxShadow, dozy, enableScaler, errMsg, errToString, getBrightness, getColorMap, isValidColor, maybeString, registerCustomColor, s, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };