diff --git a/src/js/lib.ts b/src/js/lib.ts index d69a459f298..58d843eba6e 100644 --- a/src/js/lib.ts +++ b/src/js/lib.ts @@ -3,6 +3,7 @@ import { type PyProxy } from "./pyproxy.gen"; import { type PyodideInterface } from "./api"; import { type ConfigType } from "./pyodide"; import { type InFuncType } from "./streams"; +import { type PackageData } from "./load-package"; declare global { export type TypedArray = @@ -270,6 +271,17 @@ export interface API { restoreState: (state: any) => void; defaultLdLibraryPath: string[]; + sitepackages: string; + loadDynlib: ( + lib: string, + global: boolean, + searchDirs?: string[] | undefined, + readFileFunc?: (path: string) => Uint8Array, + ) => Promise; + loadDynlibsFromPackage: ( + pkg: PackageData, + dynlibPaths: string[], + ) => Promise; makePublicAPI: () => PyodideInterface; _Comlink: any;