@@ -171,22 +171,26 @@ declare global {
171171 export const __iscoroutinefunction : ( a : number ) => number ;
172172}
173173
174+ /** @hidden */
174175export type FSNode = {
175176 timestamp : number ;
176177 rdev : number ;
177178 contents : Uint8Array ;
178179 mode : number ;
179180} ;
180181
182+ /** @hidden */
181183export type FSStream = {
182184 tty ?: boolean ;
183185 seekable ?: boolean ;
184186 stream_ops : FSStreamOps ;
185187 node : FSNode ;
186188} ;
187189
190+ /** @hidden */
188191export type FSStreamOps = FSStreamOpsGen < FSStream > ;
189192
193+ /** @hidden */
190194export type FSStreamOpsGen < T > = {
191195 open : ( a : T ) => void ;
192196 close : ( a : T ) => void ;
@@ -207,6 +211,7 @@ export type FSStreamOpsGen<T> = {
207211 ) => number ;
208212} ;
209213
214+ /** @hidden */
210215export interface FS {
211216 unlink : ( path : string ) => void ;
212217 mkdirTree : ( path : string , mode ?: number ) => void ;
@@ -256,26 +261,30 @@ export interface FS {
256261 readFile ( a : string ) : Uint8Array ;
257262}
258263
259- /** @private */
264+ /** @hidden */
260265export type PreRunFunc = ( Module : Module ) => void ;
261266
267+ /** @hidden */
262268export type ReadFileType = ( path : string ) => Uint8Array ;
263269
264270// File System-like type which can be passed to
265271// Module.loadDynamicLibrary or Module.loadWebAssemblyModule
272+ /** @hidden */
266273export type LoadDynlibFS = {
267274 readFile : ReadFileType ;
268275 findObject : ( path : string , dontResolveLastLink : boolean ) => any ;
269276} ;
270277
271278type DSO = any ;
272279
280+ /** @hidden */
273281export interface LDSO {
274282 loadedLibsByName : {
275283 [ key : string ] : DSO ;
276284 } ;
277285}
278286
287+ /** @hidden */
279288export interface Module {
280289 API : API ;
281290 locateFile : ( file : string ) => string ;
@@ -340,11 +349,13 @@ type LockfileInfo = {
340349 python : string ;
341350} ;
342351
352+ /** @hidden */
343353export type Lockfile = {
344354 info : LockfileInfo ;
345355 packages : Record < string , InternalPackageData > ;
346356} ;
347357
358+ /** @hidden */
348359export type PackageType =
349360 | "package"
350361 | "cpython_module"
@@ -361,6 +372,9 @@ export interface PackageData {
361372 packageType : PackageType ;
362373}
363374
375+ /** @hidden */
376+ export type LoadedPackages = Record < string , string > ;
377+
364378/**
365379 * @hidden
366380 */
@@ -388,6 +402,7 @@ export type PackageLoadMetadata = {
388402 packageData : InternalPackageData ;
389403} ;
390404
405+ /** @hidden */
391406export interface API {
392407 fatal_error : ( e : any ) => never ;
393408 isPyProxy : ( e : any ) => e is PyProxy ;
0 commit comments