export type Dialect = 'sqlite' | 'pg'; /** * Minimal structural view of a drizzle db shared by both dialects. Internal * modules run dynamic tables (Record schemas) where drizzle's * generics add no safety, so they accept this instead of a per-dialect union. * The public surface (`app.db`, API context) keeps full per-dialect typing via * `DbFor` in db.ts. */ export type AnyDb = { select: (...args: any[]) => any; insert: (...args: any[]) => any; update: (...args: any[]) => any; delete: (...args: any[]) => any; }; /** Classify a schema by its table brands. Mixed dialects are a config error. */ export declare function detectDialect(schema: Record): Dialect; //# sourceMappingURL=dialect.d.ts.map