interface InlineEditorProps {
    /** Current value */
    value: string;
    /** Callback when saving */
    onSave?: (value: string) => void;
    /** Callback when cancelling */
    onCancel?: () => void;
}
interface ToolbarAction {
    name: string;
    syntax: string;
}
interface InlineEditorState {
    isEditing: boolean;
    value: string;
    preview: string;
}
interface InlineEditorAPI {
    /** Current editor state */
    state: InlineEditorState;
    /** Enter editing mode */
    startEditing(): void;
    /** Cancel editing, revert to original value */
    cancel(): void;
    /** Save the current value */
    save(): void;
    /** Update the editing value */
    updateValue(value: string): void;
    /** Insert syntax at cursor position */
    insertAtCursor(syntax: string): void;
    /** Available toolbar actions */
    toolbarActions: ToolbarAction[];
}
declare function createInlineEditor(props: InlineEditorProps): InlineEditorAPI;

declare const editorVariants: (props?: ({
    state?: "viewing" | "editing" | undefined;
} & {
    className?: string;
}) | undefined) => string;
declare const toolbarVariants: (props?: ({
    size?: "sm" | "md" | "lg" | undefined;
} & {
    className?: string;
}) | undefined) => string;
declare const previewVariants: (props?: ({
    size?: "sm" | "md" | "lg" | undefined;
} & {
    className?: string;
}) | undefined) => string;

export { type InlineEditorAPI, type InlineEditorProps, type InlineEditorState, type ToolbarAction, createInlineEditor, editorVariants, previewVariants, toolbarVariants };
