export interface ICreateVSIXOptions { /** * The location of the extension in the file system. * * Defaults to `process.cwd()`. */ cwd?: string; /** * The destination of the packaged the VSIX. * * Defaults to `NAME-VERSION.vsix`. */ packagePath?: string; /** * The base URL for links detected in Markdown files. */ baseContentUrl?: string; /** * The base URL for images detected in Markdown files. */ baseImagesUrl?: string; /** * Should use Yarn instead of NPM. */ useYarn?: boolean; /** * Select the package manager to use */ usePackageManager?: "yarn" | "pnpm" | "npm"; } export interface IPublishOptions { /** * The location of the extension in the file system. * * Defaults to `process.cwd()`. */ cwd?: string; /** * The Personal Access Token to use. * * Defaults to the stored one. */ pat?: string; /** * The base URL for links detected in Markdown files. */ baseContentUrl?: string; /** * The base URL for images detected in Markdown files. */ baseImagesUrl?: string; /** * Should use Yarn instead of NPM. */ useYarn?: boolean; /** * Select the package manager to use */ usePackageManager?: "yarn" | "pnpm" | "npm"; } /** * The supported list of package managers. */ export declare enum PackageManager { Npm = 0, Yarn = 1, Pnpm = 2 } export interface IListFilesOptions { /** * The working directory of the extension. Defaults to `process.cwd()`. */ cwd?: string; /** * The package manager to use. Defaults to `PackageManager.Npm`. */ packageManager?: PackageManager; /** * A subset of the top level dependencies which should be included. The * default is `undefined` which include all dependencies, an empty array means * no dependencies will be included. */ packagedDependencies?: string[]; /** * The location of an alternative .vscodeignore file to be used. * The `.vscodeignore` file located at the root of the project will be taken * instead, if none is specified. */ ignoreFile?: string; } export interface IPublishVSIXOptions { /** * The Personal Access Token to use. * * Defaults to the stored one. */ pat?: string; /** * The base URL for links detected in Markdown files. */ baseContentUrl?: string; /** * The base URL for images detected in Markdown files. */ baseImagesUrl?: string; /** * Should use Yarn instead of NPM. */ useYarn?: boolean; /** * Select the package manager to use */ usePackageManager?: "yarn" | "pnpm" | "npm"; } /** * Creates a VSIX from the extension in the current working directory. */ export declare function createVSIX(options?: ICreateVSIXOptions): Promise; /** * Publishes the extension in the current working directory. */ export declare function publish(options?: IPublishOptions): Promise; /** * Lists the files included in the extension's package. */ export declare function listFiles(options?: IListFilesOptions): Promise; /** * Publishes a pre-build VSIX. */ export declare function publishVSIX(packagePath: string, options?: IPublishVSIXOptions): Promise;