export declare function sniff(dir: SimplePath | { string: string }): Promise<{ pkgs: PackageRequirement[], env: Record<string, string> }>;
export declare const _internals: { validateDollarSignUsage: typeof validateDollarSignUsage };
// Define our own types to replace libpkgx types
export declare interface PackageRequirement {
  project: string
  constraint: SemverRange
}
export declare class SemverRange {
  private range: string;
  constructor(range: string);
  toString(): string;
  satisfies(version: string): boolean;
}
// Simple Path replacement for libpkgx Path
declare class SimplePath {
  string: string;
  constructor(path: string);
  isDirectory(): boolean;
  read(): Promise<string>;
  readYAML(): Promise<any>;
  readYAMLAll(): Promise<any[]>;
  ls(): AsyncGenerator<[SimplePath, { name: string, isFile: boolean, isSymlink: boolean, isDirectory: boolean }]>;
  static home(): SimplePath;
}