import type { JSONObj } from '@vltpkg/registry-client'; import type { NormalizedManifest } from '@vltpkg/types'; import { getAuthorFromGitUser } from './get-author-from-git-user.ts'; export { getAuthorFromGitUser }; export type InitOptions = { cwd?: string; author?: string; logger?: (...a: unknown[]) => void; }; export type CustomizableInitOptions = { name: string; author: string; }; export type JSONFileInfo = { path: string; data: T; }; export type IgnoreFileInfo = { path: string; }; export type GitignoreFileInfo = IgnoreFileInfo; export type InitFileResults = { manifest?: JSONFileInfo; gitignore?: IgnoreFileInfo; npmignore?: IgnoreFileInfo; }; /** * Create or update a `.gitignore` file ensuring `node_modules` is listed. * Returns `{ path }` of the file that was written, or `undefined` if the * file already contained the entry and no changes were needed. */ export declare const ensureGitignore: (cwd: string) => GitignoreFileInfo | undefined; /** * Create or update a `.npmignore` file ensuring `vlt.json` is listed. * Returns `{ path }` of the file that was written, or `undefined` if the * file already contained the entry and no changes were needed. */ export declare const ensureNpmignore: (cwd: string) => IgnoreFileInfo | undefined; export declare const init: ({ cwd, author, logger, }?: InitOptions) => Promise;