import React from 'react'; import type { SalesSdkSummaryContextValue, ScanOrderSummary } from '../types'; export declare type RefreshSummaryFn = () => Promise; /** 外层 SalesSdkProvider 通过 ref 调用的 imperative API */ export interface SalesSdkSummaryHandle { refreshSummary: RefreshSummaryFn; } export declare const SalesSdkSummaryContext: React.Context; /** * 仅供 SDK 内部 Provider/action 调用,不对外暴露。 */ export declare const SalesSdkSummaryRefreshContext: React.Context; interface SalesSdkSummaryProviderProps { children: React.ReactNode; } /** * Summary 域 Provider;通过 ref 向 SalesSdkProvider 暴露 refreshSummary。 * * @example * const summaryRef = useRef(null); * * await summaryRef.current?.refreshSummary(); */ export declare const SalesSdkSummaryProvider: React.ForwardRefExoticComponent>; export {};