@cldmv/slothlet-types 3.10.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.
Files changed (52) hide show
  1. package/LICENSE +210 -0
  2. package/README.md +26 -0
  3. package/index.d.mts +3 -0
  4. package/lib/builders/api-assignment.d.mts +7 -0
  5. package/lib/builders/api_builder.d.mts +11 -0
  6. package/lib/builders/builder.d.mts +5 -0
  7. package/lib/builders/modes-processor.d.mts +7 -0
  8. package/lib/errors.d.mts +27 -0
  9. package/lib/factories/component-base.d.mts +11 -0
  10. package/lib/factories/context.d.mts +7 -0
  11. package/lib/handlers/api-cache-manager.d.mts +24 -0
  12. package/lib/handlers/api-manager.d.mts +46 -0
  13. package/lib/handlers/context-async.d.mts +27 -0
  14. package/lib/handlers/context-live.d.mts +27 -0
  15. package/lib/handlers/hook-manager.d.mts +68 -0
  16. package/lib/handlers/lifecycle-token.d.mts +3 -0
  17. package/lib/handlers/lifecycle.d.mts +12 -0
  18. package/lib/handlers/materialize-manager.d.mts +12 -0
  19. package/lib/handlers/metadata.d.mts +25 -0
  20. package/lib/handlers/module-manager.d.mts +28 -0
  21. package/lib/handlers/ownership.d.mts +56 -0
  22. package/lib/handlers/permission-manager.d.mts +55 -0
  23. package/lib/handlers/unified-wrapper.d.mts +36 -0
  24. package/lib/handlers/version-manager.d.mts +36 -0
  25. package/lib/helpers/class-instance-wrapper.d.mts +3 -0
  26. package/lib/helpers/config.d.mts +152 -0
  27. package/lib/helpers/eventemitter-context.d.mts +4 -0
  28. package/lib/helpers/generate-manifest.d.mts +11 -0
  29. package/lib/helpers/hint-detector.d.mts +6 -0
  30. package/lib/helpers/manifest-resolver.d.mts +1 -0
  31. package/lib/helpers/modes-utils.d.mts +7 -0
  32. package/lib/helpers/module-discovery.d.mts +7 -0
  33. package/lib/helpers/module-manifest-validator.d.mts +13 -0
  34. package/lib/helpers/module-sort.d.mts +1 -0
  35. package/lib/helpers/pattern-matcher.d.mts +3 -0
  36. package/lib/helpers/platform.d.mts +11 -0
  37. package/lib/helpers/resolve-from-caller.d.mts +8 -0
  38. package/lib/helpers/sanitize.d.mts +9 -0
  39. package/lib/helpers/utilities.d.mts +8 -0
  40. package/lib/i18n/translations.d.mts +6 -0
  41. package/lib/modes/eager.d.mts +16 -0
  42. package/lib/modes/lazy.d.mts +18 -0
  43. package/lib/processors/flatten.d.mts +62 -0
  44. package/lib/processors/loader.d.mts +11 -0
  45. package/lib/processors/type-generator.d.mts +4 -0
  46. package/lib/processors/typescript.d.mts +17 -0
  47. package/lib/runtime/runtime-asynclocalstorage.d.mts +3 -0
  48. package/lib/runtime/runtime-livebindings.d.mts +2 -0
  49. package/lib/runtime/runtime.d.mts +3 -0
  50. package/lib/typegen/typegen.d.mts +4 -0
  51. package/package.json +105 -0
  52. package/slothlet.d.mts +3 -0
@@ -0,0 +1,55 @@
1
+ export class PermissionManager extends ComponentBase {
2
+ static slothletProperty: string;
3
+ addRule(rule: any, ownerModuleID?: null, ruleId?: null): string;
4
+ removeRule(ruleId: any, callerModuleID?: null): boolean;
5
+ checkAccess(callerPath: any, targetPath: any, callerFilePath?: null, targetFilePath?: null, runtimeContext?: null, options?: null): any;
6
+ matchesCondition(condition: any, runtimeContext?: null): boolean;
7
+ enforceAccess(callerPath: any, targetPath: any, callerFilePath?: null, targetFilePath?: null, runtimeContext?: null): any;
8
+ enforceHookAccess(callerPath: any, hookPath: any, hookType: any, callerFilePath?: null, targetFilePath?: null, runtimeContext?: null): any;
9
+ checkHookAccess(callerPath: any, hookPath: any, hookType: any, callerFilePath?: null, targetFilePath?: null, runtimeContext?: null): any;
10
+ getRulesForPath(targetPath: any): {
11
+ id: any;
12
+ caller: any;
13
+ target: any;
14
+ effect: any;
15
+ condition: any;
16
+ ownerModuleID: any;
17
+ registeredAt: any;
18
+ }[];
19
+ getRulesByModule(moduleID: any): {
20
+ id: any;
21
+ caller: any;
22
+ target: any;
23
+ effect: any;
24
+ condition: any;
25
+ ownerModuleID: any;
26
+ registeredAt: any;
27
+ }[];
28
+ getRulesForCaller(callerPath: any): {
29
+ id: any;
30
+ caller: any;
31
+ target: any;
32
+ effect: any;
33
+ condition: any;
34
+ ownerModuleID: any;
35
+ registeredAt: any;
36
+ }[];
37
+ enable(): void;
38
+ disable(): void;
39
+ isEnabled(): boolean;
40
+ isReadGatingEnabled(): boolean;
41
+ setReadGating(value: any): void;
42
+ exportRules(): {
43
+ rule: {
44
+ caller: any;
45
+ target: any;
46
+ effect: any;
47
+ };
48
+ ownerModuleID: any;
49
+ }[];
50
+ importRules(registrations: any): void;
51
+ shutdown(): Promise<void>;
52
+ debug(category: any, data: any): void;
53
+ #private;
54
+ }
55
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,36 @@
1
+ export namespace TYPE_STATES {
2
+ let UNMATERIALIZED: symbol;
3
+ let IN_FLIGHT: symbol;
4
+ }
5
+ export class UnifiedWrapper extends ComponentBase {
6
+ static _cloneImpl(value: any): any;
7
+ static _extractFullImpl(wrapper: any): any;
8
+ constructor(slothlet: any, { mode, apiPath, initialImpl, materializeFunc, isCallable, materializeOnCreate, filePath, moduleID, sourceFolder }: {
9
+ mode: any;
10
+ apiPath: any;
11
+ initialImpl?: null | undefined;
12
+ materializeFunc?: null | undefined;
13
+ isCallable: any;
14
+ materializeOnCreate?: boolean | undefined;
15
+ filePath?: null | undefined;
16
+ moduleID?: null | undefined;
17
+ sourceFolder?: null | undefined;
18
+ });
19
+ get ____slothletInternal(): null | undefined;
20
+ ____inspectCustom(____depth: any, ____options: any, ____inspect: any): any;
21
+ get __impl(): any;
22
+ _applyNewImpl(newImpl: any, forceReuseChildren?: boolean): void;
23
+ ___setImpl(newImpl: any, moduleID?: null, forceReuseChildren?: boolean): void;
24
+ ___resetLazy(newMaterializeFunc: any): void;
25
+ ___materialize(): Promise<any>;
26
+ _materialize(): Promise<any>;
27
+ ___invalidate(): void;
28
+ ___adoptImplChildren(forceReuseChildren?: boolean): void;
29
+ ___createChildWrapper(key: any, value: any): any;
30
+ ___createWaitingProxy(propChain?: any[]): any;
31
+ createProxy(): any;
32
+ lastSyncError: unknown;
33
+ #private;
34
+ }
35
+ export function resolveWrapper(value: any): any;
36
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,36 @@
1
+ export class VersionManager extends ComponentBase {
2
+ static slothletProperty: string;
3
+ registerVersion(logicalPath: any, versionTag: any, moduleID: any, versionMeta: any, isDefault: any): void;
4
+ unregisterVersion(logicalPath: any, versionTag: any): boolean;
5
+ getVersionKeyForModule(moduleID: any): any;
6
+ hasDispatcher(logicalPath: any): boolean;
7
+ getVersionMetadata(moduleID: any): any;
8
+ getVersionMetadataByPath(logicalPath: any, versionTag: any): any;
9
+ setVersionMetadataByPath(logicalPath: any, versionTag: any, patch: any): void;
10
+ list(logicalPath: any): {
11
+ versions: {};
12
+ default: any;
13
+ } | undefined;
14
+ setDefault(logicalPath: any, versionTag: any): void;
15
+ getDefaultVersion(logicalPath: any): any;
16
+ resolveForPath(logicalPath: any, allVersions: any, caller: any): any;
17
+ buildAllVersionsArg(logicalPath: any): {};
18
+ buildCallerArg(callerWrapper: any): {
19
+ version: null;
20
+ default: null;
21
+ metadata: any;
22
+ versionMetadata: null;
23
+ } | {
24
+ version: any;
25
+ default: boolean;
26
+ metadata: any;
27
+ versionMetadata: any;
28
+ };
29
+ createDispatcher(logicalPath: any): any;
30
+ updateDispatcher(logicalPath: any): void;
31
+ teardownDispatcher(logicalPath: any): void;
32
+ onVersionedModuleReload(moduleID: any): void;
33
+ shutdown(): void;
34
+ #private;
35
+ }
36
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,3 @@
1
+ export function runtime_isClassInstance(val: any): boolean;
2
+ export function runtime_shouldWrapMethod(value: any, prop: any): boolean;
3
+ export function runtime_wrapClassInstance(instance: any, contextManager: any, instanceID: any, instanceCache: any): any;
@@ -0,0 +1,152 @@
1
+ export class Config extends ComponentBase {
2
+ static slothletProperty: string;
3
+ normalizeCollision(collision: any): {
4
+ initial: string;
5
+ api: string;
6
+ };
7
+ normalizeRuntime(runtime: any): "async" | "live";
8
+ normalizeMode(mode: any): "eager" | "lazy";
9
+ normalizeMutations(mutations: any): {
10
+ add: boolean;
11
+ remove: boolean;
12
+ reload: boolean;
13
+ permissions: boolean;
14
+ };
15
+ normalizeDebug(debug: any): {
16
+ builder: any;
17
+ api: any;
18
+ index: any;
19
+ modes: any;
20
+ wrapper: any;
21
+ ownership: any;
22
+ context: any;
23
+ initialization: any;
24
+ materialize: any;
25
+ versioning: any;
26
+ permissions: any;
27
+ };
28
+ normalizeEnvTarget(platform: any, hasManifest?: boolean): "browser" | "node";
29
+ normalizeHook(hook: any): {
30
+ enabled: boolean;
31
+ pattern: string;
32
+ suppressErrors: boolean;
33
+ pin: boolean;
34
+ };
35
+ transformConfig(config?: {}): {
36
+ base: any;
37
+ dir: any;
38
+ manifest: any;
39
+ resolveModuleSpecifier: any;
40
+ envTarget: string;
41
+ mode: string;
42
+ runtime: string;
43
+ apiDepth: any;
44
+ reference: any;
45
+ context: any;
46
+ i18n: {
47
+ language: any;
48
+ } | null;
49
+ debug: {
50
+ builder: any;
51
+ api: any;
52
+ index: any;
53
+ modes: any;
54
+ wrapper: any;
55
+ ownership: any;
56
+ context: any;
57
+ initialization: any;
58
+ materialize: any;
59
+ versioning: any;
60
+ permissions: any;
61
+ };
62
+ diagnostics: boolean;
63
+ hook: {
64
+ enabled: boolean;
65
+ pattern: string;
66
+ suppressErrors: boolean;
67
+ pin: boolean;
68
+ };
69
+ collision: {
70
+ initial: string;
71
+ api: string;
72
+ };
73
+ api: {
74
+ collision: {
75
+ initial: string;
76
+ api: string;
77
+ };
78
+ mutations: {
79
+ add: boolean;
80
+ remove: boolean;
81
+ reload: boolean;
82
+ permissions: boolean;
83
+ } | {
84
+ add: boolean;
85
+ remove: boolean;
86
+ reload: boolean;
87
+ };
88
+ };
89
+ scope: any;
90
+ tracking: {
91
+ materialization: boolean;
92
+ };
93
+ backgroundMaterialize: boolean;
94
+ silent: boolean;
95
+ typescript: {
96
+ enabled: boolean;
97
+ mode: string;
98
+ types?: undefined;
99
+ target?: undefined;
100
+ sourcemap?: undefined;
101
+ } | {
102
+ enabled: boolean;
103
+ mode: string;
104
+ types: any;
105
+ target: any;
106
+ sourcemap: any;
107
+ } | null;
108
+ env: {
109
+ include: any;
110
+ } | null;
111
+ versionDispatcher: any;
112
+ permissions: {
113
+ defaultPolicy: string;
114
+ enabled: boolean;
115
+ audit: string;
116
+ readGating: boolean;
117
+ rules: any;
118
+ } | null;
119
+ suppressFixes: Set<any>;
120
+ };
121
+ normalizeSuppressFixes(suppressFixes: any, silent: any): Set<any>;
122
+ normalizeTypeScript(typescript: any): {
123
+ enabled: boolean;
124
+ mode: string;
125
+ types?: undefined;
126
+ target?: undefined;
127
+ sourcemap?: undefined;
128
+ } | {
129
+ enabled: boolean;
130
+ mode: string;
131
+ types: any;
132
+ target: any;
133
+ sourcemap: any;
134
+ } | null;
135
+ normalizeEnv(env: any): {
136
+ include: any;
137
+ } | null;
138
+ normalizePermissions(permissions: any): {
139
+ defaultPolicy: string;
140
+ enabled: boolean;
141
+ audit: string;
142
+ readGating: boolean;
143
+ rules: any;
144
+ } | null;
145
+ }
146
+ export function normalizeHookConfig(hook: any): {
147
+ enabled: boolean;
148
+ pattern: string;
149
+ suppressErrors: boolean;
150
+ pin: boolean;
151
+ };
152
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,4 @@
1
+ export function cleanupEventEmitterResources(): void;
2
+ export function disableEventEmitterPatching(): void;
3
+ export function enableEventEmitterPatching(): void;
4
+ export function setApiContextChecker(checker: any): void;
@@ -0,0 +1,11 @@
1
+ export function collectSlothletSpecifiers(root: any): Promise<Set<string>>;
2
+ export function generateBrowserAssets(apiDir: any, options?: {}): Promise<{
3
+ manifest: any;
4
+ importmap: {
5
+ imports: {};
6
+ };
7
+ }>;
8
+ export function generateImportMap(slothletBase?: string): Promise<{
9
+ imports: {};
10
+ }>;
11
+ export function generateManifest(dir: any): Promise<any>;
@@ -0,0 +1,6 @@
1
+ export class HintDetector extends ComponentBase {
2
+ static slothletProperty: string;
3
+ detectHint(error: any, errorCode: any): string;
4
+ }
5
+ export function detectHint(error: any, errorCode: any): string;
6
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1 @@
1
+ export function createManifestResolver(base: any): (entry: any) => string;
@@ -0,0 +1,7 @@
1
+ export class ModesUtils extends ComponentBase {
2
+ static slothletProperty: string;
3
+ ensureNamedExportFunction(fn: any, ____nameHint: any): any;
4
+ cloneWrapperImpl(value: any, mode: any): any;
5
+ getOwnershipCollisionMode(config: any, collisionContext?: string): any;
6
+ }
7
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,7 @@
1
+ export function discoverModules(options?: {}): Promise<Readonly<{
2
+ packageName: any;
3
+ packageRoot: any;
4
+ mountPath: readonly any[];
5
+ apiDir: any;
6
+ manifest: any;
7
+ }>[]>;
@@ -0,0 +1,13 @@
1
+ export function validateModuleManifest(manifest: any, packageContext: any): {
2
+ schemaVersion: number;
3
+ name: any;
4
+ version: any;
5
+ description: any;
6
+ mountPath: any[];
7
+ apiDir: any;
8
+ kind: any;
9
+ priority: any;
10
+ dependencies: any;
11
+ permissions: any;
12
+ metadata: any;
13
+ };
@@ -0,0 +1 @@
1
+ export function sortModules(results: any, comparator: any): any[];
@@ -0,0 +1,3 @@
1
+ export function compilePattern(pattern: any, options?: {}): any;
2
+ export function expandBraces(pattern: any, depth?: number, maxDepth?: number, options?: {}): any;
3
+ export function splitBraceAlternatives(content: any): string[];
@@ -0,0 +1,11 @@
1
+ export let AsyncLocalStorage: null;
2
+ export let AsyncResource: null;
3
+ export let EventEmitter: null;
4
+ export let createRequire: null;
5
+ export let fs: null;
6
+ export let fsp: null;
7
+ export const isNode: boolean;
8
+ export function loadJson(ref: any): any;
9
+ export let path: null;
10
+ export let url: null;
11
+ export let util: null;
@@ -0,0 +1,8 @@
1
+ export class Resolver extends ComponentBase {
2
+ static slothletProperty: string;
3
+ getStack(skipFn: any): string | undefined;
4
+ toFsPath(v: any): any;
5
+ resolvePathFromCaller(rel: any): any;
6
+ #private;
7
+ }
8
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,9 @@
1
+ export class Sanitize extends ComponentBase {
2
+ static slothletProperty: string;
3
+ sanitizePropertyName(input: any, options?: {}): string;
4
+ getModuleId(filePath: any, baseDir: any): any;
5
+ shouldPreserveFunctionCase(name: any): boolean;
6
+ #private;
7
+ }
8
+ export function sanitizePropertyName(input: any, options?: {}): string;
9
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,8 @@
1
+ export class Utilities extends ComponentBase {
2
+ static slothletProperty: string;
3
+ isPlainObject(obj: any): boolean;
4
+ deepMerge(target: any, source: any): any;
5
+ deepClone(obj: any): any;
6
+ generateId(): string;
7
+ }
8
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,6 @@
1
+ export function getLanguage(): string;
2
+ export function initI18n(options?: {}): void;
3
+ export function setLanguage(lang: any): void;
4
+ export function setLanguageAsync(lang: any): Promise<void>;
5
+ export function t(errorCode: any, params?: {}): any;
6
+ export function translate(errorCode: any, params?: {}): any;
@@ -0,0 +1,16 @@
1
+ export class EagerMode extends ComponentBase {
2
+ static slothletProperty: string;
3
+ buildAPI({ dir, apiPathPrefix, collisionContext, moduleID, apiDepth, cacheBust, fileFilter, hidden, scanHiddenFolders, preloadedStructure }: {
4
+ dir: any;
5
+ apiPathPrefix?: string | undefined;
6
+ collisionContext?: string | undefined;
7
+ moduleID: any;
8
+ apiDepth?: number | undefined;
9
+ cacheBust?: null | undefined;
10
+ fileFilter?: null | undefined;
11
+ hidden?: null | undefined;
12
+ scanHiddenFolders?: boolean | undefined;
13
+ preloadedStructure?: null | undefined;
14
+ }): Promise<any>;
15
+ }
16
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,18 @@
1
+ export class LazyMode extends ComponentBase {
2
+ static slothletProperty: string;
3
+ createNamedMaterializeFunc(apiPath: any, handler: any): (...args: any[]) => Promise<any>;
4
+ buildAPI({ dir, apiPathPrefix, collisionContext, collisionMode, moduleID, apiDepth, cacheBust, fileFilter, hidden, scanHiddenFolders, preloadedStructure }: {
5
+ dir: any;
6
+ apiPathPrefix?: string | undefined;
7
+ collisionContext?: string | undefined;
8
+ collisionMode?: null | undefined;
9
+ moduleID: any;
10
+ apiDepth?: number | undefined;
11
+ cacheBust?: null | undefined;
12
+ fileFilter?: null | undefined;
13
+ hidden?: null | undefined;
14
+ scanHiddenFolders?: boolean | undefined;
15
+ preloadedStructure?: null | undefined;
16
+ }): Promise<any>;
17
+ }
18
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,62 @@
1
+ export class Flatten extends ComponentBase {
2
+ static slothletProperty: string;
3
+ getFlatteningDecision(options: any): Promise<{
4
+ preserveAsNamespace: boolean;
5
+ reason: any;
6
+ flattenToRoot?: undefined;
7
+ } | {
8
+ flattenToRoot: boolean;
9
+ reason: any;
10
+ preserveAsNamespace?: undefined;
11
+ } | {
12
+ flattenToCategory: boolean;
13
+ flattenType: string;
14
+ reason: any;
15
+ useAutoFlattening?: undefined;
16
+ preserveAsNamespace?: undefined;
17
+ preferredName?: undefined;
18
+ } | {
19
+ useAutoFlattening: boolean;
20
+ reason: any;
21
+ flattenToCategory?: undefined;
22
+ flattenType?: undefined;
23
+ preserveAsNamespace?: undefined;
24
+ preferredName?: undefined;
25
+ } | {
26
+ flattenToCategory: boolean;
27
+ reason: any;
28
+ flattenType?: undefined;
29
+ useAutoFlattening?: undefined;
30
+ preserveAsNamespace?: undefined;
31
+ preferredName?: undefined;
32
+ } | {
33
+ preserveAsNamespace: boolean;
34
+ preferredName: any;
35
+ reason: any;
36
+ flattenToCategory?: undefined;
37
+ flattenType?: undefined;
38
+ useAutoFlattening?: undefined;
39
+ }>;
40
+ processModuleForAPI(options: any): {
41
+ moduleContent: any;
42
+ };
43
+ buildCategoryDecisions(options: any): Promise<{
44
+ shouldFlatten: boolean;
45
+ flattenType: string;
46
+ reason: any;
47
+ preferredName?: undefined;
48
+ } | {
49
+ shouldFlatten: boolean;
50
+ flattenType: string;
51
+ preferredName: any;
52
+ reason: any;
53
+ } | {
54
+ shouldFlatten: boolean;
55
+ preferredName: any;
56
+ reason: any;
57
+ flattenType?: undefined;
58
+ }>;
59
+ shouldAttachNamedExport(key: any, value: any, defaultFunc: any, originalDefault: any): boolean;
60
+ #private;
61
+ }
62
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,11 @@
1
+ export class Loader extends ComponentBase {
2
+ static slothletProperty: string;
3
+ loadModule(filePath: any, instanceID: any, moduleID: any, cacheBust?: null): Promise<any>;
4
+ scanDirectory(dir: any, options?: {}): Promise<{
5
+ files: never[];
6
+ directories: never[];
7
+ }>;
8
+ extractExports(module: any): {};
9
+ #private;
10
+ }
11
+ import { ComponentBase } from "@cldmv/slothlet/factories/component-base";
@@ -0,0 +1,4 @@
1
+ export function generateTypes(api: any, options: any): Promise<{
2
+ output: string;
3
+ filePath: any;
4
+ }>;
@@ -0,0 +1,17 @@
1
+ export function createDataUrl(code: any): string;
2
+ export function formatDiagnostics(diagnostics: any, ts: any): any;
3
+ export function maskStringsAndComments(code: any): Uint8Array<any>;
4
+ export function resolveModuleFile(absoluteTarget: any): {
5
+ path: any;
6
+ isTS: boolean;
7
+ };
8
+ export function rewriteRelativeSpecifiers(code: any, sourcePath: any, resolve: any): any;
9
+ export function transformTypeScript(filePath: any, options?: {}): Promise<any>;
10
+ export function transformTypeScriptStrict(filePath: any, options?: {}): Promise<{
11
+ code: any;
12
+ diagnostics: any[];
13
+ }>;
14
+ export function writeTransformedToCache(originalPath: any, code: any, instanceID: any, transform: any): Promise<{
15
+ url: any;
16
+ cacheDir: any;
17
+ }>;
@@ -0,0 +1,3 @@
1
+ export const context: {};
2
+ export const instanceID: {};
3
+ export const self: {};
@@ -0,0 +1,2 @@
1
+ export const context: {};
2
+ export const self: {};
@@ -0,0 +1,3 @@
1
+ export const context: {};
2
+ export const instanceID: {};
3
+ export const self: {};
@@ -0,0 +1,4 @@
1
+ export function generateTypes(options?: {}): Promise<{
2
+ filePath: any;
3
+ content: string;
4
+ }>;
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@cldmv/slothlet-types",
3
+ "version": "3.10.0",
4
+ "description": "TypeScript declaration files (.d.mts) for @cldmv/slothlet. Install alongside @cldmv/slothlet for editor and type-checker support.",
5
+ "keywords": [
6
+ "slothlet",
7
+ "types",
8
+ "typescript",
9
+ "type-definitions",
10
+ "declarations",
11
+ "dts"
12
+ ],
13
+ "license": "Apache-2.0",
14
+ "author": {
15
+ "name": "Shinrai",
16
+ "company": "CLDMV",
17
+ "email": "git+npm@cldmv.net",
18
+ "url": "https://cldmv.net"
19
+ },
20
+ "contributors": [
21
+ {
22
+ "name": "CLDMV",
23
+ "url": "https://github.com/CLDMV"
24
+ }
25
+ ],
26
+ "funding": {
27
+ "type": "github",
28
+ "url": "https://github.com/sponsors/shinrai"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/CLDMV/slothlet.git",
33
+ "directory": "packaging/slothlet-types"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/CLDMV/slothlet/issues"
37
+ },
38
+ "homepage": "https://github.com/CLDMV/slothlet#readme",
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "type": "module",
43
+ "engines": {
44
+ "node": ">=22.0.0"
45
+ },
46
+ "sideEffects": false,
47
+ "exports": {
48
+ "./package.json": "./package.json",
49
+ ".": {
50
+ "types": "./index.d.mts"
51
+ },
52
+ "./typegen": {
53
+ "types": "./lib/typegen/typegen.d.mts"
54
+ },
55
+ "./slothlet": {
56
+ "types": "./slothlet.d.mts"
57
+ },
58
+ "./runtime": {
59
+ "types": "./lib/runtime/runtime.d.mts"
60
+ },
61
+ "./runtime/async": {
62
+ "types": "./lib/runtime/runtime-asynclocalstorage.d.mts"
63
+ },
64
+ "./runtime/live": {
65
+ "types": "./lib/runtime/runtime-livebindings.d.mts"
66
+ },
67
+ "./helpers/*": {
68
+ "types": "./lib/helpers/*.d.mts"
69
+ },
70
+ "./modes/*": {
71
+ "types": "./lib/modes/*.d.mts"
72
+ },
73
+ "./builders/*": {
74
+ "types": "./lib/builders/*.d.mts"
75
+ },
76
+ "./handlers/*": {
77
+ "types": "./lib/handlers/*.d.mts"
78
+ },
79
+ "./processors/*": {
80
+ "types": "./lib/processors/*.d.mts"
81
+ },
82
+ "./factories/*": {
83
+ "types": "./lib/factories/*.d.mts"
84
+ },
85
+ "./errors": {
86
+ "types": "./lib/errors.d.mts"
87
+ },
88
+ "./i18n": {
89
+ "types": "./lib/i18n/translations.d.mts"
90
+ }
91
+ },
92
+ "files": [
93
+ "**/*.d.mts",
94
+ "README.md",
95
+ "LICENSE"
96
+ ],
97
+ "peerDependencies": {
98
+ "@cldmv/slothlet": "3.10.0"
99
+ },
100
+ "peerDependenciesMeta": {
101
+ "@cldmv/slothlet": {
102
+ "optional": true
103
+ }
104
+ }
105
+ }
package/slothlet.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ declare function stdin_default(config: any): Promise<{}>;
2
+ export function slothlet(config: any): Promise<{}>;
3
+ export { stdin_default as default };