import { LayoutState, Layout } from '../../PredefinedConfig/RunTimeState/LayoutState'; export interface ILayoutApi { getLayoutState(): LayoutState; /** * Selects the layout * @param layoutName has to be an existing layout */ setLayout(layoutName: string): void; /** * Clears the currently selected layout */ clearLayout(): void; /** * Retrieves current Layout */ getCurrentLayout(): Layout; /** * Retrieves current Layout name */ getCurrentLayoutName(): string; /** * Retrieves the layout with the inputted name */ getLayoutByName(layoutName: string): Layout; /** * Retrieves all Layouts in State */ getAllLayout(): Layout[]; /** * Saves the current layout - using the column order and grid sort info currently in the grid */ saveCurrentLayout(): void; /** * Saves the given layout */ saveLayout(layoutToSave: Layout): void; }