import { type TablesToSchema, type UntypedSchemaDef } from '../lib/schema.ts'; import type { UntypedTableSchema } from '../lib/table_schema.ts'; declare class Tables { readonly schemaType: S; constructor(schemaType: S); } /** * Creates a schema from table definitions * @param handles - Array of table handles created by table() function * @returns ColumnBuilder representing the complete database schema * @example * ```ts * const spacetimedb = schema({ * user: table({}, userType), * post: table({}, postType) * }); * ``` */ export declare function schema>(tables: H): Tables>; type HasAccessor = { accessorName: PropertyKey; }; export type ConvertToAccessorMap = { [Tbl in TableDefs[number] as Tbl['accessorName']]: Tbl; }; export declare function convertToAccessorMap(arr: T): ConvertToAccessorMap; export {}; //# sourceMappingURL=schema.d.ts.map