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)

10 lines (9 loc) • 667 B
import type { Dictionary, INodeVariable, IServer } from '@stoplight/types'; export declare type ServerVariable = INodeVariable & { name: string; }; export declare const getServersToDisplay: (originalServers: IServer[], mockUrl: string | undefined, inlineDefaults: boolean) => IServer[]; export declare const getServerVariables: (server?: IServer | null) => ServerVariable[]; export declare const getServerVariableDefaults: (server: IServer) => Record<string, string>; export declare function resolveUrl(urlString: string | null): string | null; export declare const getServerUrlWithVariableValues: (server: IServer, values: Dictionary<string, string>) => string;