import { Draft } from 'immer';
import { Area, AreasStoreStateWithActions } from '../types';
import { WindowState } from '../../../types';
import { Layouts } from '../../../../GridLayout/types';
export declare const PADDING_GRIDLAYOUT = 10;
export declare const MARGIN_GRIDLAYOUT = 10;
export declare const DEBOUCED_SAVE_TIME = 500;
export declare const THROTTLE_RESIZE_TIME = 300;
export declare const COOKIE_AREAS_ADMIN_CONTAINER_ID = "areas";
export declare const COOKIE_AREAS_ADMIN_ID = "admin";
export declare const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
export declare const COOKIE_WINDOWS = "windows";
export declare const COOKIE_WINDOW_SELECTED = "windowSelected";
export declare const BREAKPOINT_SIZES: {
    lg: number;
    md: number;
    sm: number;
    xs: number;
    xxs: number;
};
export declare const NORMALIZED_COLS: {
    lg: number;
    md: number;
    sm: number;
    xs: number;
    xxs: number;
};
export declare const DEFAULT_LAYOUTS: {
    lg: never[];
    md: never[];
    sm: never[];
    xs: never[];
    xxs: never[];
};
export declare const RESPONSIVE_ROW_HEIGHTS: {
    xxs: number;
    xs: number;
    sm: number;
    md: number;
    lg: number;
};
export declare const DEFAULT_WINDOW: Pick<WindowState, 'status' | 'moduleActions' | 'cookies' | 'loading'>;
export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'viewMode'>;
/**
 * Create a new work area with the next available generated name.
 * The id combines the current timestamp with a short random suffix, the new
 * area becomes selected by default, and the backend is notified when network
 * persistence is enabled.
 */
export declare const addArea: (state: Draft<AreasStoreStateWithActions>) => string;
/**
 * Update utility classes from owner state.
 * This remains commented because class generation moved elsewhere, but the
 * note is kept as a reminder of the previous responsibility split.
 */
/**
 * Return the currently selected area from the normalized registry.
 * Throws when the store points to a missing area because callers expect the
 * invariant to hold once the Areas provider is loaded.
 */
export declare const getCurrentArea: (state: Draft<AreasStoreStateWithActions> | AreasStoreStateWithActions) => Area;
/**
 * Extract and parse a cookie-like value by id from a network response payload.
 * Returns `undefined` when the key is missing or the payload cannot be parsed.
 */
export declare const getParmsFromValue: (key: string, data: []) => any;
/**
 * Apply the collapsed flag for one layout across every breakpoint copy.
 * On `xxs`, free-move items keep their current collapse state.
 */
export declare function setColapsedLayoutBreakPoints(state: Draft<Area>, layoutId: string, colapsed: boolean): void;
/**
 * Remove one layout item from every stored breakpoint representation.
 */
export declare function deleteLayoutFromBreakPoints(state: Draft<Area>, layoutId?: string): void;
/**
 * Rebuild persisted layout state from the Areas cookie payload.
 * This restores the layout breakpoint map and the normalized layout-window ids
 * for API-backed microfrontend layouts.
 */
export declare function getDataFromResponse(data: any, state: Draft<AreasStoreStateWithActions>, areaId: string): {
    newBreakPointsLayouts: Layouts;
    newHashLayoutItems: string[];
};
/**
 * Collect cookie values belonging to one container id.
 */
export declare function getCookiesContainer(data: any, containerId: string): Record<string, any>;
/**
 * Read the selected area id from the Areas admin cookie payload, when present.
 */
export declare function getSelectedAreaIdFromCookies(cookiesResponse: any): string | undefined;
//# sourceMappingURL=helper.d.ts.map