import type { Bounds } from "@termfleet/core/types.js"; export declare function windowFleetStateFile(env?: NodeJS.ProcessEnv, cwd?: string): string; export type ManagedWindow = { index: number; session: string; name: string; bounds: Bounds; itermWindowId: number; }; export type WindowFleet = { prefix: string; windows: ManagedWindow[]; }; export declare function readWindowFleet(): WindowFleet | undefined; export declare function requireWindowFleet(): WindowFleet; export declare function writeWindowFleet(fleet: WindowFleet): void; export declare function createManagedWindow({ cwd, name, openWindow, servedSession, socket }: { cwd: string; name?: string; openWindow?: typeof openManagedItermWindow; servedSession: string; socket?: string; }): Promise; export declare function moveManagedWindow({ bounds, id, servedSession }: { bounds: Bounds; id: number; servedSession: string; }): ManagedWindow; declare function closeResolvedItermWindow({ cachedId, session, socket }: { cachedId: number; session: string; socket?: string; }): void; export declare function closeManagedWindow({ closeWindow, id, servedSession, socket }: { closeWindow?: typeof closeResolvedItermWindow; id: number; servedSession: string; socket?: string; }): ManagedWindow; export declare function removeManagedWindow({ id, servedSession, socket }: { id: number; servedSession: string; socket?: string; }): ManagedWindow; export declare function reopenManagedWindow({ closeWindow, cwd, openWindow, servedSession, session, socket }: { closeWindow?: typeof closeResolvedItermWindow; cwd: string; openWindow?: typeof openManagedItermWindow; servedSession: string; session: string; socket?: string; }): Promise; export declare function ownsWindowFleet(fleet: WindowFleet, servedSession: string): boolean; declare function openManagedItermWindow({ bounds, session, socket }: { session: string; bounds: Omit; socket?: string; }): number; export {};