index.d.ts (2074B)
1 import { Env } from "../../dist/env.js"; 2 import { Bindings } from "../../reducer/stack.js"; 3 import * as Result from "../../utility/result.js"; 4 import { SqError } from "../SqError.js"; 5 import { SqDict } from "../SqValue/SqDict.js"; 6 import { SqValue } from "../SqValue/index.js"; 7 import { SqValuePath } from "../SqValuePath.js"; 8 import { SqLinker } from "../SqLinker.js"; 9 import { SqOutputResult } from "../types.js"; 10 import { Import } from "./ProjectItem.js"; 11 type Options = { 12 linker?: SqLinker; 13 stdLib?: Bindings; 14 environment?: Env; 15 }; 16 export declare class SqProject { 17 private readonly items; 18 private stdLib; 19 private environment; 20 private linker?; 21 private inverseGraph; 22 constructor(options?: Options); 23 static create(options?: Options): SqProject; 24 getEnvironment(): Env; 25 setEnvironment(environment: Env): void; 26 getStdLib(): Bindings; 27 getSourceIds(): string[]; 28 private getItem; 29 private cleanDependents; 30 getDependents(sourceId: string): string[]; 31 getDependencies(sourceId: string): string[]; 32 private removeImportEdges; 33 touchSource(sourceId: string): void; 34 setSource(sourceId: string, value: string): void; 35 removeSource(sourceId: string): void; 36 getSource(sourceId: string): string | undefined; 37 clean(sourceId: string): void; 38 cleanAll(): void; 39 getImportIds(sourceId: string): Result.result<string[], SqError>; 40 getImports(sourceId: string): Result.result<Import[], SqError> | undefined; 41 getContinues(sourceId: string): string[]; 42 setContinues(sourceId: string, continues: string[]): void; 43 private getInternalOutput; 44 private parseImports; 45 getOutput(sourceId: string): SqOutputResult; 46 getResult(sourceId: string): Result.result<SqValue, SqError>; 47 getBindings(sourceId: string): Result.result<SqDict, SqError>; 48 private buildExternals; 49 private innerRun; 50 run(sourceId: string): Promise<void>; 51 findValuePathByOffset(sourceId: string, offset: number): Result.result<SqValuePath, SqError>; 52 } 53 export {}; 54 //# sourceMappingURL=index.d.ts.map