import * as WebhookDestination from '../WebhookDestination.js'; /** * Builds a `betterstack` destination. Its `deliver` formats the envelope into a * structured log event and POSTs it to the Better Stack ingest URL authenticated * with the source token (`Authorization: Bearer …`; host-locked to * `*.betterstackdata.com`). Deliver with `.deliver({ envelope })`. */ export declare function betterStack(options: betterStack.Options): WebhookDestination.Instance; export declare namespace betterStack { /** Options for {@link betterStack}. */ type Options = { /** Better Stack source token, sent as `Authorization: Bearer …`. */ token: string; /** Better Stack ingest host URL (`https://.betterstackdata.com`). */ url: string; }; } /** * Validates a `betterstack` destination's ingest URL: must be `https` and hosted * under {@link betterstackHostSuffix} (`s95.eu-nbg-2.betterstackdata.com` etc.). * As with Slack, the host lock keeps `betterstack` from becoming a generic * "POST anywhere with a bearer token" primitive — the source token is attached * server-side, so the request must only ever reach Better Stack. */ export declare function assertBetterstackUrl(input: string): URL; //# sourceMappingURL=betterStack.d.ts.map