import React from "react"; import type { PropertyEditorProps } from "../../../type"; import "./url-editor.scss"; type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; type UrlValue = { url?: string; method?: string; } | string | undefined; interface UrlEditorProps extends PropertyEditorProps { defaultMethod?: HttpMethod; } /** * URL 编辑器:编辑 { url, method } 形态的 URL 配置, * 同时兼容字符串形态(视为 URL,方法取 defaultMethod)。 */ export declare class UrlEditor extends React.Component { private defaultMethod; constructor(props: UrlEditorProps); private normalizeValue; private emitValue; render(): React.JSX.Element; } export default UrlEditor;