@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
30 lines (29 loc) • 1.26 kB
TypeScript
import type { NotificationStatus } from './CheckoutNotification';
import type { NotificationItem } from './types';
export declare const addressDisplayedAtMsByCheckoutKey: {
[key in string]?: number;
};
interface UseTransferTokenTrackingProps {
depositAddress: string | undefined;
fromChainId: string | undefined;
fromTokenSymbol: string | undefined;
toChainId: string | undefined;
toTokenAddress: string | undefined;
}
type UseTransferTokenTrackingResult = {
trackAddressCopied: () => void;
trackImpactExpanded: (estPriceImpactPct: number | undefined) => void;
trackSourceChainChange: (newChainId: string) => void;
trackSourceTokenChange: (newTokenSymbol: string) => void;
};
export declare function useTransferTokenTracking({ depositAddress, fromChainId, fromTokenSymbol, toChainId, toTokenAddress, }: UseTransferTokenTrackingProps): UseTransferTokenTrackingResult;
interface UseNotificationTrackingProps {
item: NotificationItem | null;
status: NotificationStatus;
}
interface UseNotificationTrackingResult {
trackDismissal: () => void;
trackShowMore: () => void;
}
export declare function useNotificationTracking({ item, status, }: UseNotificationTrackingProps): UseNotificationTrackingResult;
export {};