@overture-stack/lyric
Version:
Data Submission system
18 lines (17 loc) • 791 B
TypeScript
import type { AppConfig, BaseDependencies } from '../config/config.js';
/**
* Returns whether the worker context has been initialized.
*/
export declare const isInitialized: () => boolean;
/**
* Initialize the worker context with AppConfig.
* This is idempotent: if the context is already initialized it returns without making changes.
* The context is a global singleton and cannot be modified after initialization.
* @param configData - The application configuration
*/
export declare const initializeWorkerContext: (configData: AppConfig) => Promise<void>;
/**
* Utility function to get dependencies directly from the context
* @returns The BaseDependencies object
*/
export declare const getWorkerDependencies: () => Omit<BaseDependencies, "onFinishCommit" | "getWorkerPool">;