import { DbConnectionBuilder as __DbConnectionBuilder, DbConnectionImpl as __DbConnectionImpl, SubscriptionBuilderImpl as __SubscriptionBuilderImpl, type ErrorContextInterface as __ErrorContextInterface, type EventContextInterface as __EventContextInterface, type QueryBuilder as __QueryBuilder, type ReducerEventContextInterface as __ReducerEventContextInterface, type SubscriptionEventContextInterface as __SubscriptionEventContextInterface, type SubscriptionHandleImpl as __SubscriptionHandleImpl } from "spacetimedb"; /** Type-only namespace exports for generated type groups. */ /** The schema information for all tables in this module. This is defined the same was as the tables would have been defined in the server. */ declare const tablesSchema: { readonly schemaType: import("spacetimedb/dist/lib/schema").TablesToSchema<{ readonly channel: import("spacetimedb/dist/lib/table_schema").TableSchema; name: import("spacetimedb").StringBuilder; topic: import("spacetimedb").StringBuilder; createdBy: import("spacetimedb").OptionColumnBuilder; createdAt: import("spacetimedb").TimestampColumnBuilder<{ name: "created_at"; }>; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>; readonly channelMember: import("spacetimedb/dist/lib/table_schema").TableSchema; channelId: import("spacetimedb").U64ColumnBuilder<{ name: "channel_id"; }>; memberIdentity: import("spacetimedb").IdentityColumnBuilder<{ name: "member_identity"; }>; joinedAt: import("spacetimedb").TimestampColumnBuilder<{ name: "joined_at"; }>; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>; readonly message: import("spacetimedb/dist/lib/table_schema").TableSchema; channelId: import("spacetimedb").U64ColumnBuilder<{ name: "channel_id"; }>; threadId: import("spacetimedb").U64ColumnBuilder<{ name: "thread_id"; }>; authorIdentity: import("spacetimedb").OptionColumnBuilder; authorLabel: import("spacetimedb").StringColumnBuilder<{ name: "author_label"; }>; authorKind: import("spacetimedb").StringColumnBuilder<{ name: "author_kind"; }>; text: import("spacetimedb").StringBuilder; sent: import("spacetimedb").TimestampBuilder; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>; readonly thread: import("spacetimedb/dist/lib/table_schema").TableSchema; channelId: import("spacetimedb").U64ColumnBuilder<{ name: "channel_id"; }>; title: import("spacetimedb").StringBuilder; createdBy: import("spacetimedb").OptionColumnBuilder; createdAt: import("spacetimedb").TimestampColumnBuilder<{ name: "created_at"; }>; lastActivity: import("spacetimedb").TimestampColumnBuilder<{ name: "last_activity"; }>; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>; readonly user: import("spacetimedb/dist/lib/table_schema").TableSchema; name: import("spacetimedb").OptionBuilder; role: import("spacetimedb").StringBuilder; bio: import("spacetimedb").OptionBuilder; online: import("spacetimedb").BoolBuilder; lastSeen: import("spacetimedb").TimestampColumnBuilder<{ name: "last_seen"; }>; }>, [{ readonly name: "identity"; readonly algorithm: "btree"; readonly columns: readonly ["identity"]; }]>; }>; }; /** The remote SpacetimeDB module schema, both runtime and type information. */ declare const REMOTE_MODULE: { procedures: readonly []; versionInfo: { cliVersion: "2.0.1"; }; tables: { readonly channel: import("spacetimedb/dist/lib/schema").TableToSchema<"channel", import("spacetimedb/dist/lib/table_schema").TableSchema; name: import("spacetimedb").StringBuilder; topic: import("spacetimedb").StringBuilder; createdBy: import("spacetimedb").OptionColumnBuilder; createdAt: import("spacetimedb").TimestampColumnBuilder<{ name: "created_at"; }>; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>>; readonly channelMember: import("spacetimedb/dist/lib/schema").TableToSchema<"channelMember", import("spacetimedb/dist/lib/table_schema").TableSchema; channelId: import("spacetimedb").U64ColumnBuilder<{ name: "channel_id"; }>; memberIdentity: import("spacetimedb").IdentityColumnBuilder<{ name: "member_identity"; }>; joinedAt: import("spacetimedb").TimestampColumnBuilder<{ name: "joined_at"; }>; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>>; readonly message: import("spacetimedb/dist/lib/schema").TableToSchema<"message", import("spacetimedb/dist/lib/table_schema").TableSchema; channelId: import("spacetimedb").U64ColumnBuilder<{ name: "channel_id"; }>; threadId: import("spacetimedb").U64ColumnBuilder<{ name: "thread_id"; }>; authorIdentity: import("spacetimedb").OptionColumnBuilder; authorLabel: import("spacetimedb").StringColumnBuilder<{ name: "author_label"; }>; authorKind: import("spacetimedb").StringColumnBuilder<{ name: "author_kind"; }>; text: import("spacetimedb").StringBuilder; sent: import("spacetimedb").TimestampBuilder; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>>; readonly thread: import("spacetimedb/dist/lib/schema").TableToSchema<"thread", import("spacetimedb/dist/lib/table_schema").TableSchema; channelId: import("spacetimedb").U64ColumnBuilder<{ name: "channel_id"; }>; title: import("spacetimedb").StringBuilder; createdBy: import("spacetimedb").OptionColumnBuilder; createdAt: import("spacetimedb").TimestampColumnBuilder<{ name: "created_at"; }>; lastActivity: import("spacetimedb").TimestampColumnBuilder<{ name: "last_activity"; }>; }>, [{ readonly name: "id"; readonly algorithm: "btree"; readonly columns: readonly ["id"]; }]>>; readonly user: import("spacetimedb/dist/lib/schema").TableToSchema<"user", import("spacetimedb/dist/lib/table_schema").TableSchema; name: import("spacetimedb").OptionBuilder; role: import("spacetimedb").StringBuilder; bio: import("spacetimedb").OptionBuilder; online: import("spacetimedb").BoolBuilder; lastSeen: import("spacetimedb").TimestampColumnBuilder<{ name: "last_seen"; }>; }>, [{ readonly name: "identity"; readonly algorithm: "btree"; readonly columns: readonly ["identity"]; }]>>; }; reducers: readonly [{ name: "create_channel"; accessorName: "createChannel"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ name: import("spacetimedb").StringBuilder; topic: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "create_thread"; accessorName: "createThread"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ channelId: import("spacetimedb").U64Builder; title: import("spacetimedb").StringBuilder; openingMessage: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "join_channel"; accessorName: "joinChannel"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ channelId: import("spacetimedb").U64Builder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "leave_channel"; accessorName: "leaveChannel"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ channelId: import("spacetimedb").U64Builder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "send_thread_message"; accessorName: "sendThreadMessage"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ threadId: import("spacetimedb").U64Builder; text: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "set_profile"; accessorName: "setProfile"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ name: import("spacetimedb").StringBuilder; role: import("spacetimedb").StringBuilder; bio: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }]; }; /** The tables available in this remote SpacetimeDB module. Each table reference doubles as a query builder. */ export declare const tables: __QueryBuilder; /** The reducers available in this remote SpacetimeDB module. */ export declare const reducers: import("spacetimedb/dist/sdk/schema").ConvertToAccessorMap; paramsType: import("spacetimedb").ProductTypeType; }, { name: "create_thread"; accessorName: "createThread"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ channelId: import("spacetimedb").U64Builder; title: import("spacetimedb").StringBuilder; openingMessage: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "join_channel"; accessorName: "joinChannel"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ channelId: import("spacetimedb").U64Builder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "leave_channel"; accessorName: "leaveChannel"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ channelId: import("spacetimedb").U64Builder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "send_thread_message"; accessorName: "sendThreadMessage"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ threadId: import("spacetimedb").U64Builder; text: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }, { name: "set_profile"; accessorName: "setProfile"; params: import("spacetimedb/dist/lib/table").CoerceRow<{ name: import("spacetimedb").StringBuilder; role: import("spacetimedb").StringBuilder; bio: import("spacetimedb").StringBuilder; }>; paramsType: import("spacetimedb").ProductTypeType; }]>; /** The context type returned in callbacks for all possible events. */ export type EventContext = __EventContextInterface; /** The context type returned in callbacks for reducer events. */ export type ReducerEventContext = __ReducerEventContextInterface; /** The context type returned in callbacks for subscription events. */ export type SubscriptionEventContext = __SubscriptionEventContextInterface; /** The context type returned in callbacks for error events. */ export type ErrorContext = __ErrorContextInterface; /** The subscription handle type to manage active subscriptions created from a {@link SubscriptionBuilder}. */ export type SubscriptionHandle = __SubscriptionHandleImpl; /** Builder class to configure a new subscription to the remote SpacetimeDB instance. */ export declare class SubscriptionBuilder extends __SubscriptionBuilderImpl { } /** Builder class to configure a new database connection to the remote SpacetimeDB instance. */ export declare class DbConnectionBuilder extends __DbConnectionBuilder { } /** The typed database connection to manage connections to the remote SpacetimeDB instance. This class has type information specific to the generated module. */ export declare class DbConnection extends __DbConnectionImpl { /** Creates a new {@link DbConnectionBuilder} to configure and connect to the remote SpacetimeDB instance. */ static builder: () => DbConnectionBuilder; /** Creates a new {@link SubscriptionBuilder} to configure a subscription to the remote SpacetimeDB instance. */ subscriptionBuilder: () => SubscriptionBuilder; } export {};