/** * Populate a local JSR instance with packages from an upstream registry */ export declare function populateFromUpstream(params: { /** * URL of the upstream registry * * @default "https://jsr.io" */ upstream?: string; /** * URL of the downstream local registry */ downstream: string; /** * List of packages to populate (in format: `@scope/name@version`, e.g. `@std/fs@0.105.0`) */ packages: string[]; /** * Optional token for authentication (will be passed as `-t` to `deno publish`). Useful for CI/CD. */ token?: string; /** * Whether to create packages via the API instead of interactively via web UI. Useful for CI/CD. * * Requires {@link token} to be set. */ createViaApi?: boolean; /** * Deno executable path * * @default "deno" (from PATH) */ deno?: string; /** * Whether to suppress output * * @default false */ quiet?: boolean; /** * Additional arguments to pass to `deno publish` */ publishArgs?: string[] | ((pkg: string) => string[]); }): Promise;