UNPKG

node-labstreaminglayer

Version:
43 lines 1.64 kB
import { StreamInfo } from './streamInfo.js'; /** * Find all streams on the network. * @param waitTime Time to wait for streams in seconds (default: 1.0) * @returns Array of StreamInfo objects */ export declare function resolveStreams(waitTime?: number): StreamInfo[]; /** * Find streams by a specific property. * @param prop Property name to match (e.g., 'name', 'type') * @param value Property value to match * @param minimum Minimum number of streams to find * @param timeout Timeout in seconds * @returns Array of StreamInfo objects */ export declare function resolveByProp(prop: string, value: string, minimum?: number, timeout?: number): StreamInfo[]; /** * Find streams by an XPath predicate. * @param predicate XPath predicate string (e.g., "name='MyStream' and type='EEG'") * @param minimum Minimum number of streams to find * @param timeout Timeout in seconds * @returns Array of StreamInfo objects */ export declare function resolveByPred(predicate: string, minimum?: number, timeout?: number): StreamInfo[]; export declare function resolveStream(...args: any[]): StreamInfo[]; /** * Continuously resolves streams in the background. * Useful for monitoring streams that may appear and disappear. */ export declare class ContinuousResolver { private obj; constructor(prop?: string, value?: string, pred?: string, forgetAfter?: number); /** * Destroy the resolver and free resources. */ destroy(): void; /** * Get the current list of resolved streams. * @returns Array of StreamInfo objects */ results(): StreamInfo[]; } //# sourceMappingURL=resolver.d.ts.map