import { EngineServicesClient } from '../../core/client';
export type NpmrcResult = {
status: 'written';
scope: string;
} | {
status: 'forbidden';
} | {
status: 'error';
message: string;
};
/**
* Fetches the Founders npm credentials and writes them to `
/.npmrc`, so
* `npm install` can resolve the private `@thatopen-platform` beta packages.
*
* Best-effort by design — it never throws, so scaffolding and login keep
* flowing:
* - `forbidden`: the account isn't a FOUNDING member (backend 403); no file.
* - `error`: any other failure (network, misconfig); no file.
* - `written`: `.npmrc` created (mode 0600, it carries a credential).
*/
export declare function setupNpmrc(client: EngineServicesClient, dir: string): Promise;
/**
* CLI glue for the `--beta` flows (`create` and `swap`): resolves the logged-in
* config, writes an authenticated `.npmrc` into `dir`, and prints a
* human-readable status. Best-effort — never throws, so the install still runs.
*/
export declare function configureBetaNpmrc(dir: string): Promise;