Files
opencode-plugin-tmux-utils/dist/features/tmux-subagent/grid-planning.d.ts
Dmytro Stanchiev 15be750b5c need dist for plugins
Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
2026-04-19 19:15:51 -04:00

22 lines
821 B
TypeScript

import type { CapacityConfig, TmuxPaneInfo } from "./types";
export interface GridCapacity {
cols: number;
rows: number;
total: number;
}
export interface GridSlot {
row: number;
col: number;
}
export interface GridPlan {
cols: number;
rows: number;
slotWidth: number;
slotHeight: number;
}
type CapacityOptions = CapacityConfig | number | undefined;
export declare function calculateCapacity(windowWidth: number, windowHeight: number, options?: CapacityOptions, mainPaneWidth?: number): GridCapacity;
export declare function computeGridPlan(windowWidth: number, windowHeight: number, paneCount: number, options?: CapacityOptions, mainPaneWidth?: number): GridPlan;
export declare function mapPaneToSlot(pane: TmuxPaneInfo, plan: GridPlan, mainPaneWidth: number): GridSlot;
export {};