/** * Environment variable holding the Slack incoming-webhook to post SDK alerts * to. Accepts either the full `https://hooks.slack.com/services/T…/B…/x…` URL * or the bare `T…/B…/x…` path suffix. */ export declare const SLACK_WEBHOOK_ENV_VAR = "AUGUST_SDK_SLACK_WEBHOOK_URL"; /** * Resolve the Slack webhook to alert through. * * Why this replaced a hardcoded constant: a webhook path is a **bearer * credential** — anyone holding it can post to the channel. The previous * default embedded August's own webhook as a string literal, which shipped in * every published tarball and in the generated `.d.ts`, handing every consumer * of the SDK write access to an internal Slack channel (CLAUDE.md §5: no * secrets in client-reachable code). It also meant a consumer's alerts went to * August's channel rather than their own, with no way to redirect them. * * Resolution order: * 1. `explicit` — passed by the caller, wins outright; * 2. `AUGUST_SDK_SLACK_WEBHOOK_URL` in the environment; * 3. none — alerting is disabled and the call becomes a no-op. * * Reading the env var per call (rather than once at module load) means a * consumer configuring it after import still gets alerts, and a test can set * and unset it without re-importing the module. * * @param explicit - Caller-supplied webhook, full URL or bare path suffix. * @returns The bare `T…/B…/x…` path suffix, or `''` when unconfigured. */ export declare function resolveSlackWebhookUrl(explicit?: string): string; /** * @deprecated Was a hardcoded webhook credential baked into the published * bundle. It now resolves from {@link SLACK_WEBHOOK_ENV_VAR} and is `''` when * unset. Call {@link resolveSlackWebhookUrl} instead — this export exists only * so existing imports keep compiling, and is removed in the next major. */ export declare const DEFAULT_SLACK_WEBHOOK_URL = ""; declare function error(options: { title: string; error: string; poolAddress: string; chainId: number; slackWebookUrl: string; address?: string; }): void; export declare const SLACK: { error: typeof error; }; export {};