import type { InlineEditBaseProps, ResourceRefRow } from "./types.js";
/** Props for {@link InlineEditResourceList}. */
export interface InlineEditResourceListProps extends InlineEditBaseProps {
    /** Current resource references. */
    readonly value: readonly ResourceRefRow[];
    /** Called with the updated list when a change is confirmed. */
    readonly onSave: (refs: ResourceRefRow[]) => Promise<boolean>;
    /**
     * Inline picker rendered when the user clicks "Add".
     * Receives `onSelect` to call when a resource is chosen.
     * The consumer provides the appropriate domain-specific picker.
     */
    readonly renderPicker?: (onSelect: (ref: ResourceRefRow) => void) => React.ReactNode;
    /** Click handler for navigating to a referenced resource. */
    readonly onItemClick?: (ref: ResourceRefRow) => void;
    /** Icon rendered next to each item. */
    readonly itemIcon?: React.ReactNode;
    /** Label for the resource type (e.g. "MCP Server", "Skill"). */
    readonly resourceLabel?: string;
    /** Controlled editing state. When provided, component is in controlled mode. */
    readonly editing?: boolean;
    /** Called when editing state changes (controlled mode). */
    readonly onEditingChange?: (editing: boolean) => void;
    /** Default org to pre-fill in the generic add form. */
    readonly defaultOrg?: string;
}
/**
 * Inline editor for a list of resource references.
 *
 * Read mode shows clickable reference items. Edit mode adds a remove
 * button per item and an "Add" button that reveals the domain picker.
 */
export declare function InlineEditResourceList({ value, onSave, renderPicker, onItemClick, itemIcon, resourceLabel, editing: controlledEditing, onEditingChange, defaultOrg, disabled, isSaving, error, className, }: InlineEditResourceListProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=InlineEditResourceList.d.ts.map