/// import type { EdgeImpulseApi } from '../../sdk/studio/api'; import { type LinuxImpulseRunner, type ModelInformation } from '../../library/classifier/linux-impulse-runner'; import { ImageClassifier } from '../../library/classifier/image-classifier'; import type { ICamera } from '../../library/sensors/icamera'; import { AudioClassifier } from '../../library'; import { ChildProcess } from 'child_process'; export declare function listTargets(projectId: number, api: EdgeImpulseApi): Promise; export declare function audioClassifierHelloMsg(model: ModelInformation): void; export declare function imageClassifierHelloMsg(model: ModelInformation): void; export declare function printThresholds(model: ModelInformation): void; export declare function startApiServer(opts: { model: ModelInformation; runner: LinuxImpulseRunner; projectStudioUrl: string; port: number; printIncomingInferenceReqs: boolean; }): Promise; export declare function startWebServer(opts: ({ type: 'camera'; camera: ICamera; imgClassifier: ImageClassifier; streamResolution: 'original' | 'scaled-using-impulse'; } | { type: 'audio'; audioClassifier: AudioClassifier; }) & { model: ModelInformation; verbose: boolean; host: string; port: number; }): Promise; /** * Check if the VLM server is running. * @param serverAddress The address of the VLM server. * @param serverPort The port of the VLM server. * @returns True if the server is running, false otherwise. */ export declare function isVlmServerRunning(serverAddress: string, serverPort: number): Promise; /** * Start the VLM server. * @param serverPath Path to the VLM server binary. * @param modelPath Path to the VLM model file. * @param serverAddress The address to bind the VLM server. * @param serverPort The port to bind the VLM server. * @returns The spawned VLM server process. */ export declare function startVlmServer(serverPath: string, serverArgs: string[]): Promise; /** * Stop the VLM server. * @param vlmServerProcess The VLM server process to stop. */ export declare function stopVlmServer(vlmServerProcess: ChildProcess): void;