/**
 * Copyright 2023-present DreamNum Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { ICreateUnitOptions, IDocumentData } from '@univerjs/core';
import { FUniver } from '@univerjs/core/facade';
import { FDocument } from './f-document';
/**
 * @ignore
 */
export interface IFUniverDocsMixin {
    /**
     * Create a new document and get the API handler of that document.
     * @param {Partial<IDocumentData>} data The snapshot of the document.
     * @param {ICreateUnitOptions} [options] The options of creating the document.
     * @returns {FDocument} The document API instance.
     * @example
     * ```typescript
     * const fDocument = univerAPI.createDocument({ id: 'document-01', title: 'Document1'  });
     * console.log(fDocument);
     * ```
     */
    createDocument(data: Partial<IDocumentData>, options?: ICreateUnitOptions): FDocument;
    /**
     * Get the currently focused Univer document.
     * @returns {FDocument | null} The currently focused Univer document API instance, or null if there is no focused Univer document.
     * @example
     * ```typescript
     * const fDocument = univerAPI.getActiveDocument();
     * console.log(fDocument);
     * ```
     */
    getActiveDocument(): FDocument | null;
    /**
     * Get the document API handler by the document id.
     * @param {string} id The document id.
     * @returns {FDocument | null} The document API instance corresponding to the document id, or null if not found.
     * @example
     * ```typescript
     * const fDocument = univerAPI.getDocument('document-01');
     * console.log(fDocument);
     * ```
     */
    getDocument(id: string): FDocument | null;
}
export declare class FUniverDocsMixin extends FUniver implements IFUniverDocsMixin {
    createDocument(data: Partial<IDocumentData>, options?: ICreateUnitOptions): FDocument;
    getActiveDocument(): FDocument | null;
    getDocument(id: string): FDocument | null;
}
declare module '@univerjs/core/facade' {
    interface FUniver extends IFUniverDocsMixin {
    }
}
