import { type CSSProperties } from "react"; import type { TokenApproval } from "../types.js"; export interface ApprovalsPanelClassNames { root?: string; header?: string; empty?: string; row?: string; badge?: string; unlimitedBadge?: string; } export interface ApprovalsPanelProps { approvals: TokenApproval[]; /** * Threshold at or above which to show the "UNLIMITED" badge. Defaults to * `2n ** 256n - 1n` (literal max). Pass `2n ** 128n` to also badge the * common "fake unlimited" phishing values. */ unlimitedThreshold?: bigint; hideHeader?: boolean; title?: string; classNames?: ApprovalsPanelClassNames; style?: CSSProperties; className?: string; } /** * Visualization for `TokenApproval[]` from `parseApprovals`. Each row shows * the token, owner, spender, and approved value, with a prominent * "UNLIMITED" badge when the value crosses the configured threshold. * * The threshold is shared with the `largeApproval` risk rule's default — by * keeping the same default (`2n ** 256n - 1n`), a UI that wires both * `` and `` will show * consistent flagging. */ export declare function ApprovalsPanel({ approvals, unlimitedThreshold, hideHeader, title, classNames, style, className, }: ApprovalsPanelProps): React.JSX.Element; //# sourceMappingURL=ApprovalsPanel.d.ts.map