autumn-js
Version:
Autumn JS Library
34 lines (31 loc) • 1.07 kB
TypeScript
import { AutumnContextParams } from '../../AutumnContext.js';
import { CheckParams } from '../../client/types/clientGenTypes.js';
import { a as CheckResult } from '../../genTypes-CY6GNiAn.js';
import { b as Customer } from '../../cusTypes-D3QQXjif.js';
import { E as Entity } from '../../entTypes-n2T2wpRx.js';
import 'react';
import '../../ReactAutumnClient-DkAcY1X2.js';
import '../../error-DHbclCVh.js';
import '../../attachTypes-CKp1KMwX.js';
import '../../prodTypes-C4aZSZfO.js';
import 'zod/v4';
interface AllowedParams {
featureId?: string;
productId?: string;
requiredBalance?: number;
}
declare const openDialog: ({ result, params, context, }: {
result: CheckResult | null;
params: CheckParams;
context: AutumnContextParams;
}) => void;
declare const handleCheck: ({ customer, isEntity, params, context, }: {
customer: Customer | Entity | null;
isEntity?: boolean;
params: CheckParams;
context?: AutumnContextParams;
}) => {
data: CheckResult;
error: null;
};
export { type AllowedParams, handleCheck, openDialog };