/**
 * Screen Transforms
 * Convert FluidOS API screen objects to ScreenDefinition format.
 *
 * Extracted from:
 * - apps/fluid-admin/networking/app-builder/app-screens/types.ts
 * - apps/fluid-admin/networking/reps/screens.api.ts
 */
import type { WidgetSchema } from "@fluid-app/portal-core/types";
import type { ScreenDefinition } from "@fluid-app/portal-core/types";
/** Raw screen from the FluidOS API */
export interface RawApiScreen {
    id: number | string;
    definition_id?: number | string;
    name?: string | null;
    slug?: string | null;
    component_tree?: unknown;
}
/**
 * Normalize component_tree to always be an array.
 * The API stores component_tree as a hash (object), but the frontend expects an array.
 */
export declare function normalizeComponentTree(componentTree: unknown): WidgetSchema[];
/**
 * Convert a raw FluidOS screen to ScreenDefinition.
 * Normalizes component_tree and converts string IDs to numbers.
 */
export declare function toScreenDefinition(screen: RawApiScreen): ScreenDefinition;
//# sourceMappingURL=screen-transforms.d.ts.map