import { getValueFromMdParsedExtension } from '../utils/index.js';
export function getExamples({ parser, infoOrRef, mime, encoding }) {
    const { resolved: example } = parser.deref(infoOrRef);
    const rawValue = example.value;
    const value = example.value;
    const summary = getValueFromMdParsedExtension(example, 'summary');
    const description = getValueFromMdParsedExtension(example, 'description');
    return {
        value,
        rawValue,
        summary,
        description,
        mime,
        encoding,
    };
}
//# sourceMappingURL=example.js.map