import { C as FramesStackItem, B as FrameStackMessage, A as FrameStackRequestError, G as GetFrameResult, y as FrameStackDone } from '../types-CH60H6Gq.js'; import { FramesStackItem as FramesStackItem$1, FrameStackMessage as FrameStackMessage$1, FrameStackRequestError as FrameStackRequestError$1, PartialFrameV2 } from '../unstable-types.js'; import { PartialFrame } from './types.js'; import 'frames.js'; import 'react'; import 'frames.js/frame-parsers'; import 'frames.js/types'; type FrameResultFailure = Exclude; type FrameResultSuccess = Extract; type FrameResultSuccessFrameV1 = Extract; type FrameResultFailureFrameV1 = Extract; type FrameV1FailureResult = Omit & { frame: PartialFrame; }; type FrameResultFailureFrameV2 = Extract; type FrameResultSuccessFrameV2 = Extract; type FrameV2FailureResult = Omit & { frame: PartialFrameV2; }; type FrameStackItemWithPartialFrame = Omit & { frameResult: FrameV1FailureResult | FrameV2FailureResult; }; declare function isPartialFrameStackItem(stackItem: FramesStackItem | FramesStackItem$1): stackItem is FrameStackItemWithPartialFrame; declare function getErrorMessageFromFramesStackItem(item: FrameStackMessage | FrameStackRequestError | FrameStackMessage$1 | FrameStackRequestError$1): string; declare function isValidPartialFrameV1(value: GetFrameResult): value is FrameV1FailureResult; declare function isValidPartialFrameV2(value: GetFrameResult): value is FrameV2FailureResult; /** * All partial frames need at least an image and button to be considered valid. */ declare function isValidPartialFrame(frameResult: GetFrameResult): boolean; declare function isValidFrameV1(value: GetFrameResult): value is FrameResultSuccessFrameV1; declare function isValidFrameV2(value: GetFrameResult): value is FrameResultSuccessFrameV2; declare function isValidFrame(value: GetFrameResult): boolean; export { getErrorMessageFromFramesStackItem, isPartialFrameStackItem, isValidFrame, isValidFrameV1, isValidFrameV2, isValidPartialFrame, isValidPartialFrameV1, isValidPartialFrameV2 };