import { Extension } from '@codemirror/state';
import { installPatches, setupVertical, attachMouseListeners, getPhysicalRect, uninstallPatches } from './core';
import { tcy } from './tcy';
import { ruby } from './ruby';
import { injectFont } from './font';
export { installPatches, setupVertical, attachMouseListeners, getPhysicalRect, uninstallPatches };
export { tcy, ruby };
export { injectFont };
export interface VerticalWritingOptions {
    /**
     * Font family for the editor.
     * IMPORTANT: This should be a 'pre-rotated' font (where glyphs are rotated 90deg left).
     */
    fontFamily: string;
    fontSize?: string;
    textColor?: string;
    tcy?: boolean;
    ruby?: boolean;
}
/**
 * Entry point for the Vertical Writing library (CodeMirror 6 Extension).
 *
 * DESIGN RATIONALE:
 * Browsers' `writing-mode: vertical-rl` often causes severe issues in CodeMirror 6
 * (cursor alignment, scroll performance, viewport calculation).
 *
 * This library implements vertical writing by:
 * 1. Forcing `horizontal-tb` mode inside CodeMirror.
 * 2. Rotating the entire editor wrapper 90deg using CSS `transform`.
 * 3. Re-mapping coordinate systems using global patches (core.ts).
 */
export declare function verticalWriting(options: VerticalWritingOptions): Extension;
