import type { IBundledHttpService, Optional } from '@stoplight/types'; import type { ArrayCallbackParameters, Fragment, TransformerContext } from '../../types'; import { OasVersion } from '../types'; interface Components { responses: IBundledHttpService['components']['responses']; definitions: IBundledHttpService['components']['schemas']; schemas: IBundledHttpService['components']['schemas']; requestBodies: IBundledHttpService['components']['requestBodies']; examples: IBundledHttpService['components']['examples']; securitySchemes: IBundledHttpService['components']['securitySchemes']; securityDefinitions: IBundledHttpService['components']['securitySchemes']; } declare type Translator = (...params: ArrayCallbackParameters<[key: string, response: unknown]>) => Optional>; declare type Translators = { responses?: Translator<'responses'>; definitions?: Translator<'schemas'>; schemas?: Translator<'schemas'>; requestBodies?: Translator<'requestBodies'>; examples?: Translator<'examples'>; securitySchemes?: Translator<'securitySchemes'>; securityDefinitions?: Translator<'securitySchemes'>; }; export declare const translateToComponents: (this: TransformerContext, spec: OasVersion, translators: Translators) => Pick; export {};