16 lines
544 B
TypeScript
16 lines
544 B
TypeScript
import type { PluginInput } from "@opencode-ai/plugin";
|
|
import type { TrackedSession } from "./types";
|
|
type OpencodeClient = PluginInput["client"];
|
|
export declare class TmuxPollingManager {
|
|
private client;
|
|
private sessions;
|
|
private closeSessionById;
|
|
private pollInterval?;
|
|
private pollingInFlight;
|
|
constructor(client: OpencodeClient, sessions: Map<string, TrackedSession>, closeSessionById: (sessionId: string) => Promise<void>);
|
|
startPolling(): void;
|
|
stopPolling(): void;
|
|
private pollSessions;
|
|
}
|
|
export {};
|