import type { FunctionResource } from '../../types.js';
/** Everything a child process needs to run a prepared function. */
export interface PreparedFunction {
    /** Absolute path to the entry file the child should import. */
    functionPath: string;
    /** Timings recorded while bundling, merged into the invocation result. */
    bundleTimings?: Record<string, number>;
}
/** A reference-counted handle to a shared build. Call `release()` once per acquire. */
export interface FunctionBuild {
    ready: Promise<PreparedFunction>;
    release: () => Promise<void>;
}
/**
 * Acquire a shared, reference-counted build for `resource`. The first caller runs
 * the transpile + temp package.json setup; concurrent callers reuse it. Every
 * caller MUST call `release()` exactly once when its child has exited, so the
 * shared artifacts are torn down only after the last in-flight invoke finishes.
 */
export declare function acquireFunctionBuild(resource: FunctionResource, blueprintFileDir: string): FunctionBuild;
