/** * Centralized constants for the c15t CLI * * All magic strings, URLs, and regex patterns should be defined here * to maintain consistency and make updates easier. */ export declare const URLS: { /** API documentation */ readonly API_DOCS: 'https://c15t.com/docs/self-host/api/endpoints'; /** Product changelog */ readonly CHANGELOG: 'https://c15t.com/changelog'; /** CLI documentation */ readonly CLI_DOCS: 'https://c15t.com/docs/cli/overview'; /** Default c15t cloud platform URL */ readonly CONSENT_IO: 'https://inth.com'; /** Discord community */ readonly DISCORD: 'https://c15t.com/discord'; /** Documentation website */ readonly DOCS: 'https://c15t.com/docs'; /** GitHub repository */ readonly GITHUB: 'https://github.com/c15t/c15t'; /** First-party telemetry logs endpoint */ readonly TELEMETRY: 'https://telemetry.c15t.com/c15t/v1/logs'; }; export declare const PATHS: { /** c15t config directory name (in home dir) */ readonly CONFIG_DIR: '.c15t'; /** Config file name */ readonly CONFIG_FILE: 'config.json'; /** Project config file name */ readonly PROJECT_CONFIG: 'c15t.config.ts'; /** Alternative project config file name */ readonly PROJECT_CONFIG_JS: 'c15t.config.js'; /** Telemetry retry queue file name */ readonly TELEMETRY_QUEUE_FILE: 'telemetry-queue.json'; /** Telemetry state file name */ readonly TELEMETRY_STATE_FILE: 'telemetry.json'; }; export declare const REGEX: { /** Hosted c15t platform URL pattern (legacy and current domains) */ readonly C15T_URL: RegExp; /** Dynamic route segment pattern (e.g., [locale]) */ readonly DYNAMIC_SEGMENT: RegExp; /** Package name pattern */ readonly PACKAGE_NAME: RegExp; /** Semantic version pattern */ readonly SEMVER: RegExp; /** Generic URL pattern */ readonly URL: RegExp; }; export declare const CLI_INFO: { /** CLI binary name */ readonly BIN: 'c15t'; /** Control-plane client name */ readonly CONTROL_PLANE_CLIENT_NAME: 'c15t-cli'; /** CLI name */ readonly NAME: 'c15t'; /** Current version (updated during build) */ readonly VERSION: string; }; export declare const TIMEOUTS: { /** Control-plane connection timeout (ms) */ readonly CONTROL_PLANE_CONNECTION: 30000; /** Device flow expiration (seconds) */ readonly DEVICE_FLOW_EXPIRY: 900; /** Device flow polling interval (seconds) */ readonly DEVICE_FLOW_POLL_INTERVAL: 5; /** HTTP request timeout (ms) */ readonly HTTP_REQUEST: 10000; }; export declare const ENV_VARS: { /** c15t API key */ readonly API_KEY: 'C15T_API_KEY'; /** c15t backend URL */ readonly BACKEND_URL: 'C15T_URL'; /** Control-plane/dashboard base URL override */ readonly CONSENT_URL: 'CONSENT_URL'; /** Debug mode */ readonly DEBUG: 'C15T_DEBUG'; /** Disable telemetry */ readonly TELEMETRY_DISABLED: 'C15T_TELEMETRY_DISABLED'; /** Override telemetry ingest endpoint */ readonly TELEMETRY_ENDPOINT: 'C15T_TELEMETRY_ENDPOINT'; /** Optional Axiom org ID for telemetry ingest */ readonly TELEMETRY_ORG_ID: 'C15T_TELEMETRY_ORG_ID'; /** Optional write key for telemetry ingest */ readonly TELEMETRY_WRITE_KEY: 'C15T_TELEMETRY_WRITE_KEY'; /** Enable v2 feature-flagged behavior */ readonly V2: 'V2'; }; export declare const STORAGE_MODES: { /** * @deprecated Use HOSTED instead; remove in v3.0.0. * @see HOSTED */ readonly C15T: 'c15t'; readonly CUSTOM: 'custom'; readonly HOSTED: 'hosted'; readonly OFFLINE: 'offline'; readonly SELF_HOSTED: 'self-hosted'; }; export type StorageMode = (typeof STORAGE_MODES)[keyof typeof STORAGE_MODES]; export declare const PACKAGES: { readonly BACKEND: '@c15t/backend'; readonly CORE: 'c15t'; readonly NEXTJS: 'c15t/next'; readonly REACT: 'c15t/react'; }; /** The npm package installed for every frontend framework target. */ export declare const UMBRELLA_PACKAGE = "c15t"; /** * Scoped framework packages whose direct installation satisfies the umbrella * requirement. Apps that granularly installed `@c15t/react` or `@c15t/nextjs` * must keep that install style on setup reruns — adding the `c15t` umbrella on * top would mix two installs of the same code, a version-skew hazard. */ export declare const SCOPED_FRAMEWORK_PACKAGES: readonly ['@c15t/react', '@c15t/nextjs']; export type AvailablePackage = (typeof PACKAGES)[keyof typeof PACKAGES]; export declare const FRAMEWORK_KEYS: { readonly GATSBY: 'gatsby'; readonly NEXT: 'next'; readonly REACT: 'react'; readonly REMIX: '@remix-run/react'; readonly VITE_REACT: '@vitejs/plugin-react'; readonly VITE_REACT_SWC: '@vitejs/plugin-react-swc'; }; export declare const LAYOUT_PATTERNS: readonly ['app/layout.tsx', 'app/layout.ts', 'app/layout.jsx', 'app/layout.js', 'src/app/layout.tsx', 'src/app/layout.ts', 'src/app/layout.jsx', 'src/app/layout.js', 'app/*/layout.tsx', 'app/*/layout.ts', 'app/*/layout.jsx', 'app/*/layout.js', 'src/app/*/layout.tsx', 'src/app/*/layout.ts', 'src/app/*/layout.jsx', 'src/app/*/layout.js', 'app/*/*/layout.tsx', 'app/*/*/layout.ts', 'app/*/*/layout.jsx', 'app/*/*/layout.js', 'src/app/*/*/layout.tsx', 'src/app/*/*/layout.ts', 'src/app/*/*/layout.jsx', 'src/app/*/*/layout.js']; export declare const PAGES_APP_PATTERNS: readonly ['pages/_app.tsx', 'pages/_app.ts', 'pages/_app.jsx', 'pages/_app.js', 'src/pages/_app.tsx', 'src/pages/_app.ts', 'src/pages/_app.jsx', 'src/pages/_app.js'];