/**
 * Copyright (c) OpenLens Maintainers. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */
import "./editable-list.scss";
import React from "react";
import type { InputProps, InputValidator } from "../input";
import type { StrictReactNode, SingleOrMany } from "@openlens/utilities";
export interface EditableListProps<T> {
    items: T[];
    add: (newItem: string) => void;
    remove: (info: {
        oldItem: T;
        index: number;
    }) => void;
    placeholder?: string;
    validators?: SingleOrMany<InputValidator<boolean>>;
    renderItem?: (item: T, index: number) => StrictReactNode;
    inputTheme?: InputProps["theme"];
}
export declare function EditableList<T>(props: EditableListProps<T>): React.JSX.Element;
