declare const STRIPE_SCHEMA_COMMENT_PREFIX = "stripe-sync"; declare const INSTALLATION_STARTED_SUFFIX = "installation:started"; declare const INSTALLATION_ERROR_SUFFIX = "installation:error"; declare const INSTALLATION_INSTALLED_SUFFIX = "installed"; declare const UNINSTALLATION_STARTED_SUFFIX = "uninstallation:started"; declare const UNINSTALLATION_ERROR_SUFFIX = "uninstallation:error"; /** * Installation status for the Supabase schema comment */ type SchemaInstallationStatus = 'installing' | 'installed' | 'install error' | 'uninstalling' | 'uninstalled' | 'uninstall error'; /** * Comment structure stored in stripe schema as JSON */ interface StripeSchemaComment { /** The installation status */ status: SchemaInstallationStatus; /** The old sync engine package version (e.g., '1.2.3'). This is * set to the old version being upgraded from. */ oldVersion?: string; /** The new sync engine package version (e.g., '1.2.3'). This is * set to the new version being installed or upgraded to. */ newVersion?: string; /** Error message if status is install error or uninstall error */ errorMessage?: string; /** * Time when installation or uninstallation started */ startTime?: number; } /** * Parse schema comment - tries JSON first, falls back to legacy plain-text parsing */ declare function parseSchemaComment(comment: string | null | undefined): StripeSchemaComment; export { INSTALLATION_ERROR_SUFFIX as I, type StripeSchemaComment as S, UNINSTALLATION_ERROR_SUFFIX as U, INSTALLATION_INSTALLED_SUFFIX as a, INSTALLATION_STARTED_SUFFIX as b, STRIPE_SCHEMA_COMMENT_PREFIX as c, type SchemaInstallationStatus as d, UNINSTALLATION_STARTED_SUFFIX as e, parseSchemaComment as p };