import { ServerOptions } from '@livekit/agents'; export interface RunLiveKitWorkerOptions { /** The worker entry module whose default export is the agent definition. Pass `import.meta.url`. */ entry: string | URL; /** LiveKit agent name for explicit dispatch. Defaults to `'mastra-voice'`. */ agentName?: string; /** Extra LiveKit ServerOptions merged over what this helper builds. */ serverOptions?: Partial[0]>; } export declare function resolveWorkerEntryPath(entry: string | URL): string; /** * Starts the LiveKit agent worker CLI (`dev` / `start` / `connect` subcommands) for a * worker entry file. Call it from the same file that default-exports * {@link createLiveKitWorker}, guarded so it only runs when executed directly: * * ```ts * import { fileURLToPath } from 'node:url'; * import { createLiveKitWorker, runLiveKitWorker } from '@mastra/livekit/worker'; * import { mastra } from './index.js'; * * export default createLiveKitWorker({ mastra, agent: 'support' }); * * if (process.argv[1] === fileURLToPath(import.meta.url)) { * runLiveKitWorker({ entry: import.meta.url, agentName: 'mastra-voice' }); * } * ``` * * Using this helper (instead of `cli.runApp` from `@livekit/agents`) guarantees the worker * runtime and the bridge share one copy of the LiveKit SDK. */ export declare function runLiveKitWorker(options: RunLiveKitWorkerOptions): void; //# sourceMappingURL=run.d.ts.map