import { InferTableType, TableSchema } from './table-builder'; import { CollectionQueryBuilder } from '../query/query-builder'; /** * Create a typed row proxy for queries * This allows strong typing without 'as any' */ export type TypedRow = { [K in keyof T['columns']]: K; } & { [K in keyof T['relations']]: T['relations'][K]['type'] extends 'many' ? CollectionQueryBuilder : any; }; /** * Helper to create typed row accessor */ export declare function createTypedRow(schema: T): TypedRow; /** * Infer the full type including columns and relations */ export type InferSchemaType = InferTableType & { [K in keyof T['relations']]: T['relations'][K]['type'] extends 'many' ? CollectionQueryBuilder : any; }; //# sourceMappingURL=typed-schema.d.ts.map