UNPKG

wgc

Version:

The official CLI tool to manage the GraphQL Federation Platform Cosmo

10 lines (9 loc) 714 B
import type { FetchRouterConfigResult } from './types/types.js'; import type { FetchRouterConfigParams } from './types/params.js'; export declare const featureFlagsDir = "feature-flags"; export declare const latestFile = "latest.json"; export declare const mapperFile = "mapper.json"; export declare const routerConfigFile = "router-config.json"; export declare function getRouterConfigOutputFile(out: string): Promise<string>; export declare const fetchRouterConfig: ({ client, name, namespace, graphSignKey, }: FetchRouterConfigParams) => Promise<FetchRouterConfigResult>; export declare function writeFeatureFlagConfigToFile(basePath: string, featureFlagName: string, featureFlagConfig: string): Promise<void>;