import type { RequestParams, SPL2ViewMetadata } from '@splunk/dashboard-types'; /** * Generates an SPL2 query from request parameters that can reference an exported view from a module * * @returns {string} * @private * @param view * @param namespace */ export declare const generateSPL2ViewQuery: (view: string, namespace?: string) => string; export declare const stripPostProcessRequestParams: (requestParams: RequestParams) => RequestParams; /** * Gets the sharing from the namespace. * * Sharing is Private if namespace matches the following formats: * ~.users..apps. * ~.users..apps.. * .users..apps. * .users..apps.. * * Sharing is App if namespace matches the following formats: * ~.apps. * ~.apps.. * .apps. * .apps.. * * Sharing is Custom otherwise * * @param namespace */ export declare const getSharingFromNamespace: (namespace: string) => string; /** * Gets the app name from the namespace. Returns null if namespace is not in one of the expected formats. * * Valid shorcut formats: * ~.apps. * ~.apps.. * ~.users..apps. * ~.users..apps.. * * Valid absolute formats: * .apps. * .apps.. * .users..apps. * .users..apps.. * * @param namespace */ export declare const getAppFromNamespace: (namespace: string) => string | null; export declare const getSPL2ModuleMetadata: ({ signal, namespace, }: { signal?: AbortSignal; namespace: string; }) => Promise; //# sourceMappingURL=SPL2Utils.d.ts.map