import type {InsiderAppFrameStatusType} from './InsiderAppFrameStatus'; import type {StyleProp, ViewStyle} from 'react-native'; export declare function flattenStyle(style: StyleProp): ViewStyle; export declare function hasExplicitHeight(style: StyleProp): boolean; /** Applies the reported height to `style` unless `style` already sets `height`. */ export declare function resolveFrameStyle( style: StyleProp, reportedHeight: number | undefined, ): StyleProp; /** Parses an action payload; returns `{}` for malformed input instead of throwing. */ export declare function parseActionData(raw: string | undefined): Record; /** Maps a status string onto `InsiderAppFrameStatus`, falling back to `UNRECOGNIZED`. */ export declare function normalizeStatus(status: unknown): InsiderAppFrameStatusType; /** Statuses in which the frame collapses to zero height. */ export declare const COLLAPSING_STATUSES: readonly InsiderAppFrameStatusType[]; export declare function collapsesHeight(status: InsiderAppFrameStatusType): boolean; /** The three `ERROR_*` statuses. `UNAVAILABLE` and `DISABLED` are resting states, not errors. */ export declare const ERROR_STATUSES: readonly InsiderAppFrameStatusType[]; export declare function isErrorStatus(status: InsiderAppFrameStatusType): boolean; /** The in-flight loading statuses: `RESOLVING`, `DOWNLOADING` and `RENDERING`. */ export declare const LOADING_STATUSES: readonly InsiderAppFrameStatusType[]; export declare function isLoadingStatus(status: InsiderAppFrameStatusType): boolean; /** Minimum React Native minor version (0.x) that supports App Frames on iOS. */ export declare const APP_FRAMES_MIN_IOS_REACT_NATIVE_MINOR: number; /** True when App Frames cannot render on this platform and React Native setup. */ export declare function shouldWarnAboutUnsupportedReactNative( platformOS: string, version: {major: number; minor: number; patch: number} | null | undefined, isFabricEnabled?: boolean, ): boolean;