/**
 * Main function to create a provider for collaboration.
 * Currently only hocuspocus is actually supported.
 *
 * @deprecated Use external provider instead. Pass { ydoc, provider } to modules.collaboration config.
 * @param {Object} param The config object
 * @param {Object} param.config The configuration object
 * @param {Object} param.ydoc The Yjs document
 * @param {Object} param.user The user object
 * @param {string} param.documentId The document ID
 * @returns {Object} The provider and socket
 */
export function createProvider({ config, user, documentId, socket, superdocInstance }: {
    config: any;
    ydoc: any;
    user: any;
    documentId: string;
}): any;
/**
 * Setup awareness handler for external providers.
 * Wires up awareness 'change' events to emit superdoc 'awareness-update' events.
 *
 * @param {Object} provider The external provider (must have awareness property)
 * @param {Object} superdocInstance The SuperDoc instance
 * @param {Object} user The user object for local awareness state
 * @returns {void}
 */
export function setupAwarenessHandler(provider: any, superdocInstance: any, user: any): void;
//# sourceMappingURL=collaboration.d.ts.map