import React from "react"; import type { Resource } from "./use-resources.js"; export interface ResourceEditorProps { resource: Resource; onSave: (content: string) => void; /** Controlled view mode — if provided, the editor won't manage its own view state */ view?: "visual" | "code"; onViewChange?: (v: "visual" | "code") => void; /** When true, the editor's internal toolbar row is hidden */ hideToolbar?: boolean; /** When true, content can be viewed and selected but not modified */ readOnly?: boolean; } export declare function ResourceEditor({ resource, onSave, view: controlledView, onViewChange, hideToolbar, readOnly, }: ResourceEditorProps): React.JSX.Element; //# sourceMappingURL=ResourceEditor.d.ts.map