/** * @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}`; /** * Check if a string is well-formed UTF-16 (no lone surrogates). * encodeURIComponent() throws an error for lone surrogates */ export declare const isWellFormed: (str: string) => boolean; /** * 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;