import type { Snippet } from "svelte"; /** Hiérarchie ENCODÉE DANS LE TYPE : une seule action `primary` est légitime * dans une pile. `secondary` = action secondaire ; `ghost` = action discrète. * La couleur sémantique (danger) n'est PAS un `kind` — elle vit dans * `dangerZone`, rendue à part. Le mauvais chemin (4 « primaires » arc-en-ciel) * devient ainsi impossible à exprimer proprement. */ export type NavActionKind = "primary" | "secondary" | "ghost"; export type NavAction = { label: string; icon?: Snippet; onClick?: () => void; href?: string; kind?: NavActionKind; disabled?: boolean; }; /** Action destructrice, isolée sous un séparateur + un overline « Zone * sensible ». Toujours en ton danger, jamais alignée avec les actions * normales. Pas de `kind` : c'est une zone, pas une catégorie de couleur. */ export type NavActionDangerZone = { label: string; icon?: Snippet; onClick?: () => void; href?: string; }; export type NavActionStackOrientation = "vertical" | "horizontal"; type NavActionStackProps = { actions?: NavAction[]; dangerZone?: NavActionDangerZone; /** Libellé de l'overline de la zone sensible. Défaut « Zone sensible ». */ dangerLabel?: string; orientation?: NavActionStackOrientation; /** Étiquette a11y du groupe d'actions. */ label?: string; class?: string; }; declare const NavActionStack: import("svelte").Component; type NavActionStack = ReturnType; export default NavActionStack; //# sourceMappingURL=NavActionStack.svelte.d.ts.map