import { AuthSpec } from '../schema/WebApiSchema.js'; import { PluginContext } from '../types/PluginContext.js'; import { SqupContext } from '../types/SqupContext.js'; /** * Mutates the supplied headers to effect the plugin's configured authorization and returns any * args that need to be added to the query */ export declare function processOAuth2(headers: { [x: string]: any; }, refresh: boolean, auth: AuthSpec, pluginContext: PluginContext, squpContext: SqupContext): Promise<{ key: string; value: any; }[]>; /** * Function to clear any previous token (e.g. before testing a new config) * * @param {*} context */ export declare function clearAuth(auth: AuthSpec, pluginContext: PluginContext, squpContext: SqupContext): void;