import { ApiDocument } from '@opra/common'; import type { TsGenerator } from '../ts-generator.js'; /** * Generates the document and its references. * * @param document - The document to generate. * @param options - Generation options. * @returns An object containing the generated document and its generator. */ export declare function generateDocument(this: TsGenerator, document?: string | ApiDocument, options?: { typesOnly?: boolean; }): Promise<{ document: ApiDocument; generator: TsGenerator; }>;