/** * wait Command - resolving --instance per worktree (Issue #2376) * Issue #3964: split out of wait.ts. */ import type { WaitOptions } from '../types'; import { type ApiClient } from '../utils/api-client'; import { type CommandTarget } from './command-target'; /** * `options` with `--instance` resolved from a selector to an instance ID * (Issue #2376). * * `wait` polls `/current-output?instance=`, which matches instance IDs and * nothing else, so an alias that reached it would filter to no session and the * wait would report on the worktree default instead — the exact silent * wrong-session failure Issue #1638 catalogued for `--agent`. * * @param client - API client * @param worktreeId - Worktree the selector is resolved against * @param options - The options as given */ export declare function resolveWaitInstance(client: ApiClient, worktreeId: string, options: T): Promise; /** * The target `wait`'s hints name (Issue #3982): the `--instance` that * {@link resolveWaitInstance} resolved, or none. `wait` has no `--agent`. * * @param options - Options already passed through {@link resolveWaitInstance} */ export declare function waitCommandTarget(options: Pick): CommandTarget; //# sourceMappingURL=wait-instance.d.ts.map