import type { Icon } from "./icon.js"; import type { ObjectSlug } from "./object-slug.js"; export interface ObjectAction { /** * A unique identifier for the action. */ readonly id: string; /** * A function to execute when the action is triggered */ readonly onTrigger: (info: { object: ObjectSlug; }) => Promise; /** * The label to display for the action */ readonly label: string; /** * An `AttioIcon` to display in the action. * * If no `icon` prop is provided, it will default to your app's icon. */ readonly icon?: Icon; /** * If provided then the action will only be shown on specified object(s). * * Either a single object slug, an array of object slugs, or a predicate that will examine * the object and return true if the action should be shown. */ readonly objects?: ObjectSlug | Array | ((info: { object: ObjectSlug; }) => boolean); } //# sourceMappingURL=object-action.d.ts.map