import type { Report, Variants } from '../types.ts';
type Options = {
    root: string;
    output: string;
    type: 'commonjs' | 'module';
    pkg: {
        type?: unknown;
        imports?: unknown;
    };
    variants: Variants;
    report: Report;
};
/**
 * The generated `package.json` also starts a new package scope for the files in it.
 * Tools resolve fields such as `imports` from the closest `package.json`,
 * so the fields in the root `package.json` don't apply to the built files anymore.
 * We skip it when the root `package.json` already has the same `type` and the output is inside the root.
 */
export declare function writePackageType({ root, output, type, pkg, variants, report, }: Options): Promise<void>;
export {};
