export type SwipeActionVariant = 'default' | 'danger' | 'warning' | 'success' | 'brand' | 'muted'; export interface SwipeActionItem { id: string; label: string; /** Short label under icon; defaults to `label` */ hint?: string; variant?: SwipeActionVariant; disabled?: boolean; onclick?: () => void; } import type { Snippet } from 'svelte'; interface SwipeActionProps { /** Actions revealed by swiping right (content moves right → left panel) */ leftActions?: SwipeActionItem[]; /** Actions revealed by swiping left (content moves left → right panel) */ rightActions?: SwipeActionItem[]; /** px to commit open. Default ~ half an action width */ threshold?: number; disabled?: boolean; /** Close the row after an action is pressed. Default true */ closeOnAction?: boolean; class?: string; children?: Snippet; /** Custom left panel (overrides `leftActions` rendering) */ left?: Snippet; /** Custom right panel (overrides `rightActions` rendering) */ right?: Snippet; /** @deprecated Prefer `right` — kept for existing call sites */ actions?: Snippet; onopen?: (side: 'left' | 'right') => void; onclose?: () => void; onaction?: (action: SwipeActionItem, side: 'left' | 'right') => void; } declare const SwipeAction: import("svelte").Component; type SwipeAction = ReturnType; export default SwipeAction;