UNPKG

@grafana/alerting

Version:

Grafana Alerting Library – Build vertical integrations on top of the industry-leading alerting solution

14 lines (13 loc) 752 B
/** * @TODO move this to some shared package, currently copied from Grafana core (app/api/utils) */ export declare const getAPINamespace: () => string; export declare const getAPIBaseURL: (group: string, version: string) => `${string}/apis/${string}/${string}/namespaces/${string}`; export declare const getAPIReducerPath: (group: string, version: string) => `${string}/${string}`; /** * Base64URL encode a string using native browser APIs. * Handles Unicode characters correctly by using TextEncoder. * Converts standard base64 to base64url by replacing + with -, / with _, and removing padding. * @throws Error if the input string contains lone surrogates (malformed UTF-16) */ export declare const base64UrlEncode: (value: string) => string;