import { type PaymentFlowFactory } from './flows'; import type { ListReaderParams, PaymentAction, PaymentPayParams, PaymentRefundParams, PaymentRequestClient, PaymentSession, PaymentSessionCreateOptions } from './types'; /** V2 的薄 Session:只做 Flow 选路、实例持有与方法转发。 */ export declare class PaymentSessionImpl implements PaymentSession { readonly sessionId: string; private readonly request; private readonly options; private readonly flowFactory; private readonly onDestroy?; private activeFlow?; private active; private succeeded; private destroyed; private lockedOperation?; private flowGeneration; private readerController?; constructor(sessionId: string, request: PaymentRequestClient, options: PaymentSessionCreateOptions, onDestroy?: (session: PaymentSessionImpl) => void, flowFactory?: PaymentFlowFactory); listReader(params?: ListReaderParams): void; pay(params: PaymentPayParams): void; refund(params: PaymentRefundParams): void; action(action: PaymentAction, inputValues?: Record): void; destroy(): void; private start; private handleFlowEvent; private assertUsable; private releaseFlow; private emit; } export declare const createSessionId: () => string;