oak-pay-business/es/components/pay/detail/web.pc.d.ts

37 lines
1.2 KiB
TypeScript

import React from 'react';
import { RowWithActions, WebComponentProps } from 'oak-frontend-base';
import { EntityDict } from '../../../oak-app-domain';
type ColoredOffline = EntityDict['offlineAccount']['OpSchema'] & {
color: string;
};
export declare function RenderOffline(props: {
pay: RowWithActions<EntityDict, 'pay'>;
t: (key: string) => string;
mode: 'frontend' | 'backend';
offlines: ColoredOffline[];
offline: ColoredOffline;
updateOfflineId: (entityId: string) => void;
updateExternalId: (externalId: string) => void;
}): React.JSX.Element;
export default function Render(props: WebComponentProps<EntityDict, 'pay', false, {
pay?: RowWithActions<EntityDict, 'pay'>;
iStateColor?: string;
onClose: () => undefined;
closable: boolean;
startPayable: boolean;
succeedable: boolean;
autoSuccessAt: boolean;
goBackable: boolean;
notSameApp?: boolean;
type: string;
offlines?: ColoredOffline[];
offline?: ColoredOffline;
oakExecutable: boolean;
mode: 'frontend' | 'backend';
}, {
goBack: () => void;
startPay: () => Promise<void>;
succeed: (successAt: number) => Promise<void>;
}>): React.JSX.Element | null;
export {};