UNPKG

1.69 kBTypeScriptView Raw
1/**
2 * Copyright 2018, OpenCensus Authors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import { LabelValue } from './export/types';
17import { LengthAttributeInterface, LengthMethodInterface, SizeAttributeInterface, SizeMethodInterface, ToValueInterface } from './types';
18/**
19 * Returns a string(comma separated) from the list of label values.
20 *
21 * @param labelValues The list of the label values.
22 * @returns The hashed label values string.
23 */
24export declare function hashLabelValues(labelValues: LabelValue[]): string;
25/**
26 * Returns default label values.
27 *
28 * @param count The number of label values.
29 * @returns The list of the label values.
30 */
31export declare function initializeDefaultLabels(count: number): LabelValue[];
32export declare function isLengthAttributeInterface(obj: any): obj is LengthAttributeInterface;
33export declare function isLengthMethodInterface(obj: any): obj is LengthMethodInterface;
34export declare function isSizeAttributeInterface(obj: any): obj is SizeAttributeInterface;
35export declare function isSizeMethodInterface(obj: any): obj is SizeMethodInterface;
36export declare function isToValueInterface(obj: any): obj is ToValueInterface;