UNPKG

@discoveryjs/discovery

Version:

Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards

8 lines (7 loc) 561 B
import type { KnownParams, Params } from './types.js'; export declare const decodedSpecialParams: (keyof KnownParams)[]; export declare const encodedSpecialParams: string[]; export declare function encodeParams(params: Partial<Params> | string): [name: string, value?: string | undefined][]; export declare function decodeParams(pairs: [name: string, value: unknown][]): Params; export declare function contextWithoutEditorParams(newContext: any, currentContext?: any): any; export declare function getParamsFromContext(context: unknown): Partial<KnownParams>;