import { ExtensionInfo } from './writer'; export interface Module { path: string; requires: string[]; version: string; } /** * Parse a .control file and extract its metadata. * https://www.postgresql.org/docs/current/extend-extensions.html */ export declare function parseControlFile(filePath: string, basePath: string): Module; /** * Parse the pgpm.plan file to get the extension name. */ export declare const getExtensionName: (packageDir: string) => string; /** * Get detailed information about an extension in the specified directory. */ export declare const getExtensionInfo: (packageDir: string) => ExtensionInfo; /** * Get a list of extensions required by an extension from its control file. * Returns an empty array if the file doesn't exist or has no requires line. */ export declare const getInstalledExtensions: (controlFilePath: string) => string[];