import type { IBoardMermaidOptions } from '@univerjs-pro/boards-exchange-client';
import { FBoard } from '@univerjs-pro/boards/facade';
/** @ignore */
export interface IFBoardExchangeClientMixin {
    /**
     * Convert Mermaid code and insert the resulting diagram into this Board's active page.
     * @param {string} code Mermaid source code to convert and insert
     * @param {IBoardMermaidOptions} [options] Mermaid conversion and insertion options
     * @param {string} [options.diagramType] Optional Mermaid diagram type used as conversion metadata
     * @param {string} [options.fileName] Optional source file name sent to the exchange service
     * @param {string} [options.containerName] Optional name for the container wrapping the inserted diagram
     * @param {boolean} [options.selectAfterInsert] Whether to select the inserted diagram; defaults to `true`
     * @param {number} [options.left] Optional left coordinate in Board space
     * @param {number} [options.top] Optional top coordinate in Board space
     * @returns {Promise<boolean>} A promise that resolves to `true` when the diagram is inserted; otherwise `false`
     *
     * @example
     * ```typescript
     * const board = univerAPI.getActiveBoard();
     * if (board) {
     *     const inserted = await board.insertMermaidAsync(
     *         'flowchart TD; A[Start] --> B[Finish]',
     *         {
     *             diagramType: 'flowchart',
     *             fileName: 'workflow.mermaid',
     *             containerName: 'Workflow',
     *             selectAfterInsert: true,
     *             left: 320,
     *             top: 240,
     *         }
     *     );
     * }
     * ```
     */
    insertMermaidAsync(code: string, options?: IBoardMermaidOptions): Promise<boolean>;
}
export declare class FBoardExchangeClientMixin extends FBoard implements IFBoardExchangeClientMixin {
    insertMermaidAsync(code: string, options?: IBoardMermaidOptions): Promise<boolean>;
}
declare module '@univerjs-pro/boards/facade' {
    interface FBoard extends IFBoardExchangeClientMixin {
    }
}
