import React, { ReactNode } from 'react'; import { CredentialsMeta } from '@truvity/widget__client'; import { CredentialDid, ViewWidgetErrors, WalletDid, EntityDid, WidgetViewApi, WalletViewApi } from '../../types'; import { LinkedCredentialsPreviewRequests } from '../../forms/widgets/linkedCredentials'; declare type SlotProps = { meta?: CredentialsMeta; }; export declare type WalletViewCredentialProps = LinkedCredentialsPreviewRequests & { /** * The DID of a credential that we want to display. */ credentialId: CredentialDid; /** * The DID of the wallet that stores the credential that we want to display. */ walletDid: WalletDid; /** * The DID of the entity that owns the wallet where the credential we want to display is stored. */ entityDid: EntityDid; /** * An API client that provides support for the necessary widget service operations required to work with * the credential that we want to display. */ widgetApi: WidgetViewApi; /** * An API client that provides support for the necessary wallet service operations required to work with * the credential that we want to display. */ walletApi: WalletViewApi; /** * A callback that notifies when a widget is fully displayed and ready for interactions. */ onDisplayed?: () => void; /** * A callback that reports widget errors and allows for their handling. * If an error occurs, the widget will display an empty form without fields. */ onError?: (error: ViewWidgetErrors) => void; /** * A render prop that displays content before all fields and inner controls. * The passed props include information about the credential metadata. */ headerSlotRenderer?: (renderProps: SlotProps) => ReactNode; /** * A render prop that displays content after all fields and inner controls. * The passed props include information about the credential metadata. */ footerSlotRenderer?: (renderProps: SlotProps) => ReactNode; }; export declare const WalletViewCredential: ({ credentialId, walletDid, entityDid, onDisplayed, getVcPreview, onError, widgetApi, walletApi, footerSlotRenderer, headerSlotRenderer, }: WalletViewCredentialProps) => React.JSX.Element | null; export {}; //# sourceMappingURL=WalletViewCredential.d.ts.map