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