@deepseek-ai/dsh-typert-generator 0.0.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Model-driven Typert artifact emitter. It consumes only FaceModel and
3
+ * TypeGraph data; TypeScript compiler nodes are not part of this boundary.
4
+ * @module @deepseek-ai/dsh-typert-generator/emitter
5
+ */
6
+ import type { FaceModel } from './model.ts';
7
+ /** Failure to project a modeled construct into an emitted artifact. */
8
+ export declare class TypertEmitError extends Error {
9
+ name: string;
10
+ }
11
+ /** JavaScript and declaration artifacts for one package on one face. */
12
+ export interface ModelEmitResult {
13
+ readonly package: string;
14
+ readonly face: FaceModel['face'];
15
+ readonly exports: readonly string[];
16
+ readonly js: string;
17
+ readonly dts: string;
18
+ readonly remote?: RemoteModelEmitResult;
19
+ }
20
+ /** Host-for-Client Remote contribution generated from the Host Program. */
21
+ export interface RemoteModelEmitResult {
22
+ readonly js: string;
23
+ readonly dts: string;
24
+ readonly dtsMap: string;
25
+ }
26
+ /** Emit generated runtime and type artifacts from one independently analyzed face. */
27
+ export declare class FaceModelEmitter {
28
+ private readonly face;
29
+ private readonly renderer;
30
+ /**
31
+ * Create an emitter for one face graph.
32
+ * @param face - independently analyzed face.
33
+ */
34
+ constructor(face: FaceModel);
35
+ /**
36
+ * Emit one modeled package.
37
+ * @param packageName - exact package name in the face model.
38
+ * @returns executable JavaScript and its precise declaration file.
39
+ */
40
+ emit(packageName: string): ModelEmitResult;
41
+ private runtimeModel;
42
+ private runtimeMember;
43
+ private runtimeTypes;
44
+ private renderJs;
45
+ private renderDts;
46
+ private emitRemote;
47
+ private invocationLiteral;
48
+ private renderRemoteDts;
49
+ private pushRemoteSignature;
50
+ private pushRemoteNamespaceSignature;
51
+ private pushMappedRemoteSignature;
52
+ private remoteSignature;
53
+ private remoteFunctionType;
54
+ }
55
+ //# sourceMappingURL=emitter.d.ts.map