* Fully migrates metrics and logs to the NP Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com> Co-authored-by: John Schulz <github.com@jfsiii.org> Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
27 lines
956 B
TypeScript
27 lines
956 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
declare module 'rison-node' {
|
|
export type RisonValue = null | boolean | number | string | RisonObject | RisonArray;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
export interface RisonArray extends Array<RisonValue> {}
|
|
|
|
export interface RisonObject {
|
|
[key: string]: RisonValue;
|
|
}
|
|
|
|
export const decode: (input: string) => RisonValue;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
export const decode_object: (input: string) => RisonObject;
|
|
|
|
export const encode: <Input extends RisonValue>(input: Input) => string;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
export const encode_object: <Input extends RisonObject>(input: Input) => string;
|
|
}
|