import type { JSONColumnType } from 'kysely'; import type * as Db from '../Db.js'; import type * as db_Schema from '../Schema.js'; /** Columns of the `funding_catalogs` table. */ export type CatalogTable = db_Schema.FundingCatalog; /** Columns of the `funding_chains` table. */ export type ChainTable = Omit & { /** Caller-facing chain aliases stored as JSON. */ aliases: JSONColumnType; /** Public RPC endpoints stored as JSON. */ rpcUrls: JSONColumnType; }; /** Columns of the `funding_tokens` table. */ export type TokenTable = db_Schema.FundingToken; /** Columns of the `funding_chain_tokens` table. */ export type ChainTokenTable = db_Schema.FundingChainToken; /** Columns of the `funding_routes` table. */ export type RouteTable = db_Schema.FundingRoute; /** A route row whose optional JSON fields may be absent in validated input. */ export type RouteRow = Omit & { /** Executable capability; absent and null both mean indicative-only. */ capabilities?: db_Schema.FundingRoute['capabilities'] | undefined; /** Provider-specific route configuration; absent and null are equivalent. */ configuration?: db_Schema.FundingRoute['configuration'] | undefined; }; /** Stored funding catalog rows and version metadata. */ export type Rows = { /** Current catalog metadata, or undefined before the first publish. */ catalog: db_Schema.FundingCatalog | undefined; /** Chain-scoped funding token rows. */ chainTokens: readonly db_Schema.FundingChainToken[]; /** Funding chain rows. */ chains: readonly db_Schema.FundingChain[]; /** Funding provider route rows. */ routes: readonly RouteRow[]; /** Funding token rows. */ tokens: readonly db_Schema.FundingToken[]; }; /** Reads the current funding catalog version metadata. */ export declare function head(db: Db.Db): Promise; /** Reads every row in the current funding catalog. */ export declare function read(db: Db.Db): Promise; /** Replaces the complete funding catalog and advances its version. */ export declare function publish(db: Db.Db, input: publish.Input): Promise; export declare namespace publish { /** Complete validated funding catalog rows. */ type Input = { /** Chain-scoped funding token rows. */ chainTokens: readonly db_Schema.FundingChainToken[]; /** Funding chain rows. */ chains: readonly db_Schema.FundingChain[]; /** Funding provider route rows. */ routes: readonly RouteRow[]; /** Funding token rows. */ tokens: readonly db_Schema.FundingToken[]; }; } //# sourceMappingURL=fundingCatalog.d.ts.map