import { type PartialWithUndefined } from '@augment-vir/common'; /** * Params for {@link createPgliteMigration} * * @category Internal */ export type PgliteMigrationParams = PartialWithUndefined<{ /** * Path to a Prisma config file (`prisma.config.ts`). Prisma v7 reads the schema location, * datasource, and (if set) the `migrations.path` from this config. The migrations directory is * derived from it: the config's `migrations.path` if set, otherwise the `migrations` folder * next to the schema. * * @default join(process.cwd(), 'prisma.config.ts') */ prismaConfigPath: string; /** * Enable logging. * * @default false */ enableLogs: boolean; }> & { /** The name of the new migration, if one is needed. */ migrationName: string; }; /** * Output from {@link createPgliteMigration}. * * @category Internal */ export type PgliteMigration = { migrationName: string; migrationDirPath: string; }; /** * Contents of the migration lock file as required by this plugin (specifically, using postgres). * * @category Internal */ export declare const migrationLockFileContents: string; /** * Create a dev migration using Prisma with a PGlite database. This is analogous to running `prisma * migrate dev` with a plain Postgres database. * * The new migration is computed by replaying the existing migration history into a throwaway PGlite * database (the "shadow" database) and diffing it against your schema. No snapshot files are needed * and the Prisma CLI is not invoked. * * @category CLI * @returns {@link PgliteMigration} If the migration was created, otherwise `undefined`. */ export declare function createPgliteMigration(params: Readonly): Promise; /** * Sanitize a user provided migration name so it fits Prisma's naming scheme conventions / * requirements. * * @category Internal */ export declare function sanitizeMigrationName(originalName: string): string; /** * Finds the latest Prisma migration folder within the given migrations folder. * * @category Internal */ export declare function findLatestMigrationPath(migrationsDirPath: string): Promise; export { migrationLockFileName } from './schema-engine.js';