declare module "drizzle-orm/node-postgres" {
  export function drizzle(pool: any, options?: any): any;
}

declare module "pg" {
  export class Pool {
    constructor(opts?: any);
    connect(): Promise<any>;
    query(...args: any[]): Promise<any>;
    end(): Promise<void>;
  }

  const pg: any;
  export default pg;
}

// Allow importing of generated schema files without types
declare module "./schema" {
  const schema: any;
  export = schema;
}

declare module "drizzle-kit" {
  export function defineConfig(config: any): any;
  const dk: { defineConfig: (c: any) => any };
  export default dk;
}

declare module "path" {
  export function join(...parts: any[]): string;
}

declare var process: any;
