type WithInfo = { info?: { 'x-metadata'?: Record; }; }; /** * Merges the API config `metadata` into `info.x-metadata`, the config winning over the spec. * * Mutates `document` and its `info` in place and returns the same object. The bundle * decorators collect the `#/info/description` chunk as a reference to the `info` object, so * a copy would leave the resolved Markdoc AST on an orphan and the document with the raw string. * * @param document - the bundled document * @param metadata - the config `metadata`, or none * @returns the same document */ export declare function injectMetadata(document: T, metadata: Record | undefined): T; export {}; //# sourceMappingURL=inject-metadata.d.ts.map