/** * Copyright (c) 2020 * * Common utility functions for ThoughtSpot Embed UI SDK * * @summary Utils * @author Ayon Ghosh */ import { QueryParams, RuntimeFilter } from './types'; /** * A simple ID generator that meets the following goals: * 1. Provide a way to generate a string guaranteed to be unique when compared * to other strings generated by this function. * 2. Make the string complex enough that it is highly unlikely to be * accidentally duplicated by hand (this is key if you're using `ID` * as a private/protected name on an object). * Hat-tip: https://gist.github.com/gordonbrander/2230317 */ export declare const id: () => string; /** * Construct a runtime filters query string from the given filters * Refer to the following docs for more details on runtime filter syntax: * https://docs.thoughtspot.com/6.2/app-integrate/runtime-filters/apply-runtime-filter.html * https://docs.thoughtspot.com/6.2/app-integrate/runtime-filters/runtime-filter-operators.html# * @param runtimeFilters */ export declare const getFilterQuery: (runtimeFilters: RuntimeFilter[]) => string; /** * Return a query param string composed from the given params object * @param queryParams */ export declare const getQueryParamString: (queryParams: QueryParams) => string;