/** * Public SQLite-authoritative Hikoutei runtime and the `createTypedSheets()` factory. * * This module intentionally knows nothing about Sheet routes or provider * provisioning. When `HIKOUTEI_SYNC_SPREADSHEET_URL` is set, the factory * delegates to the internal sync auto-start bridge, which builds a mapped * runtime and provisions the bound spreadsheet separately; the application- * facing contract stays unchanged either way. * * P8-D2 phase 2: the runtime core (the `Hikoutei` contract, its close state * machine, and the option helpers) lives in `@hikoutei/sync-engine`, and the * local-runtime factory lives in `@hikoutei/composition`. This module keeps * only the public factory entry and re-exports the internal helpers for the * staying root modules and internal deep-import tests. */ import { resolveDefaultDbPath, validateTypedSheetsOptions, createInternalHikoutei, type CreateTypedSheetsOptions, type HikouteiProviderOptions, type Hikoutei } from "../sync-engine/api/hikouteiCore.js"; import "../composition/index.js"; export { createInternalHikoutei, resolveDefaultDbPath, validateTypedSheetsOptions, type CreateTypedSheetsOptions, type HikouteiProviderOptions, type Hikoutei, }; /** * Opens the local SQLite runtime for the declared scalar entities. * * When `dbName` is omitted the `HIKOUTEI_DB_PATH` environment variable or * `./hikoutei.sqlite` is used; when `entities` is omitted the tokens registered * by `defineTypedSheetsEntity()` are used, in registration order. * * When `HIKOUTEI_SYNC_SPREADSHEET_URL` is set, the internal sync auto-start * bridge provisions the spreadsheet, validates the service-account * credentials file, and starts the outbound worker and User_Input polling * before returning. Startup failures are classified into stable * `HikouteiError` codes and fail closed. Without that env var this call never * contacts Google Sheets, creates projection tables, or starts a worker, and * the local-only behavior is byte-identical to previous releases. */ export declare function createTypedSheets(options?: CreateTypedSheetsOptions): Promise; //# sourceMappingURL=Hikoutei.d.ts.map