UNPKG

@stoplight/elements-core

Version:

[![docs](https://img.shields.io/badge/API%20Docs-site-green.svg?style=flat-square)](https://meta.stoplight.io/docs/elements) [![license](https://img.shields.io/npm/l/@stoplight/elements?style=flat-square)](./LICENSE)

19 lines (18 loc) • 680 B
import { IHttpOperation } from '@stoplight/types'; export declare type MockingOptions = { code?: string; example?: string; dynamic?: boolean; }; declare type PreferHeaderProps = { code?: string; example?: string; dynamic?: boolean; }; export declare type MockData = { url: string; header?: Record<'Prefer', string>; }; export declare function getMockData(url: string | undefined, httpOperation: IHttpOperation, { code, dynamic, example }: MockingOptions): MockData | undefined; export declare function buildPreferHeader({ code, example, dynamic }: PreferHeaderProps, httpOperation: IHttpOperation): Record<'Prefer', string> | undefined; export {};