import type { LoaderThis } from './types';
export type ValueInjectionLoaderOptions = {
    values: Record<string, unknown>;
};
/**
 * Finds the index in user code at which to inject statements.
 *
 * The injection must come AFTER all prologue directives ("use strict", "use client", etc.)
 * and any surrounding whitespace/comments, but before any actual statements.
 *
 * Handles multiple directives, comments between directives, directives without semicolons,
 * escape sequences in strings, and strings followed by operators (which are not directives).
 */
export declare function findInjectionIndexAfterDirectives(userCode: string): number;
/**
 * Set values on the global/window object at the start of a module.
 *
 * Options:
 *   - `values`: An object where the keys correspond to the keys of the global values to set and the values
 *        correspond to the values of the values on the global object. Values must be JSON serializable.
 */
export default function valueInjectionLoader(this: LoaderThis<ValueInjectionLoaderOptions>, userCode: string): string;
//# sourceMappingURL=valueInjectionLoader.d.ts.map