import { Config } from './Config.js'; export type SqupLog = { debug: (message: string | null | undefined, obj?: unknown) => void; info: (message: string | null | undefined, obj?: unknown) => void; warn: (message: string | null | undefined, obj?: unknown) => void; error: (message: string | null | undefined, obj?: unknown) => void; }; export type SqupReport = { warning: (message: string) => void; error: (message: string) => void; }; export type RuntimeContext = { getRemainingTimeMs: () => number; }; export type SqupApi = { log: SqupLog; report: SqupReport; patchConfig: (propertyName: string, propertyValue: any, encryption?: string | string[]) => void; runtimeContext: RuntimeContext; }; export type GraphImportApi = (config: Config, payload: { vertices: any[]; edges: any[]; }, startOfImport?: boolean, endOfImport?: boolean) => Promise; export type PageApi = { get: (key: string) => any; set: (key: string, value: any) => void; clear: () => void; }; export type SqupContext = { log: SqupLog; report: SqupReport; patchConfig: (propertyName: string, propertyValue: any, encryption: string | string[] | undefined) => void; runtimeContext: RuntimeContext; canContinue?: (delay?: number) => boolean; allowInlineEval?: boolean; }; export type SqupImportContext = SqupContext & { graphImport: GraphImportApi; pageApi: PageApi; };