import { ShallowRef } from 'vue';
import { DocController } from '../../types';
import { DocumentFactory } from '../factories/useDocumentFactory';
import { DocOperations } from './useDocOperations';
/**
 * 将加载层（factory）与操作层（ops）组合为受控文档句柄 DocController
 *
 * 内部通过 watch doc 变化来重建 controller，当文档未加载时返回 null。
 * 可与任何持有 DocumentFactory + DocOperations 的场景搭配使用。
 *
 * @example
 * const factory = useDocumentFactory(docProps, docPayload);
 * const ops = useDocOperations(factory.doc);
 * const controller = useDocController(factory, ops);
 * // controller.value?.validate()
 */
export declare function useDocController(factory: DocumentFactory, ops: DocOperations): ShallowRef<DocController | null>;
