import { ApiDocument } from '@opra/common'; /** * Loads an `ApiDocument` from a local module. * * Deliberately a *local module* rather than a service url: `docKey` is an * authoring-time property that never reaches the published schema, so a * document rebuilt from a served `$schema` would produce unstable keys * exactly where a `docKey` was declared to prevent them. * * Shared by `docs:extract` and `docs:studio` so the two can never disagree * about which document they are looking at — the same reason * `extractTranslations()` runs the runtime's own `export()` walk rather than * re-implementing it. * * @param moduleRef - Module path, optionally with the export to use after a * `#` (`./dist/api-document.js#CustomerApiDocument`). The export may be * an `ApiDocument`, a function returning one, or a namespace with a * `create()`. */ export declare function loadDocument(moduleRef: string): Promise;