import type { OpenClawConfig, HookMapping, CliConfig, ProxyRoutes, ProxyRouteConfig } from '../types.js'; declare const OPENCLAW_DIR: string; declare const OPENCLAW_JSON: string; declare const HOOKS_PROXY_PATH: string; declare const GOGCLI_DIR: string; declare const CLI_CONFIG_DIR: string; export { OPENCLAW_JSON, HOOKS_PROXY_PATH, OPENCLAW_DIR, GOGCLI_DIR, CLI_CONFIG_DIR }; export declare function readOpenClawConfig(): Promise; export declare function writeOpenClawConfig(config: OpenClawConfig): Promise; export declare function getHookToken(): Promise; export declare function getGatewayPort(): Promise; export declare function getHooksProxyPort(): Promise; /** * Add a hook mapping to openclaw.json hooks.mappings array. * Replaces existing mapping with same path match if present. */ export declare function addHookMapping(mapping: HookMapping): Promise; /** * Set the gmail section in openclaw.json hooks.gmail. */ export declare function setGmailConfig(gmailConfig: { account?: string; }): Promise; export declare function readCliConfig(): Promise; export declare function writeCliConfig(config: CliConfig): Promise; export declare function getCliConfigValue(key: string): Promise; export declare function setCliConfigValue(key: string, value: unknown): Promise; /** * Read current ROUTES from hooks-proxy.mjs using regex extraction. * Returns the routes object or an empty object. */ export declare function readProxyRoutes(): Promise; /** * Save routes to CLI config and regenerate hooks-proxy.mjs. */ export declare function writeProxyRoutes(routes: ProxyRoutes): Promise; /** * Add or update a route in the hooks proxy. */ export declare function addProxyRoute(path: string, config: ProxyRouteConfig): Promise; /** * Regenerate hooks-proxy.mjs from routes. */ export declare function regenerateHooksProxy(routes: ProxyRoutes): Promise; export declare function generateToken(bytes?: number): string; export declare function fileExists(path: string): Promise; //# sourceMappingURL=config.d.ts.map