import { T as WideEvent, r as DrainContext } from "../types-B82IuY7M.mjs"; //#region src/adapters/axiom.d.ts interface BaseAxiomConfig { /** Axiom dataset name */ dataset: string; /** Axiom API token */ token: string; /** Organization ID (required for Personal Access Tokens) */ orgId?: string; /** Request timeout in milliseconds. Default: 5000 */ timeout?: number; } interface EdgeAxiomConfig { /** * Edge URL for Axiom ingest/query endpoints. * If no path is provided, uses /v1/ingest/{dataset}. * If a custom path is provided, it is used as-is (trailing slash trimmed). */ edgeUrl: string; /** Mutually exclusive with edgeUrl. */ baseUrl?: never; } interface EndpointAxiomConfig { /** Base URL for Axiom API. Uses /v1/datasets/{dataset}/ingest. */ baseUrl?: string; /** Mutually exclusive with baseUrl. */ edgeUrl?: never; } type AxiomConfig = BaseAxiomConfig & (EdgeAxiomConfig | EndpointAxiomConfig); /** * Create a drain function for sending logs to Axiom. * * Configuration priority (highest to lowest): * 1. Overrides passed to createAxiomDrain() * 2. runtimeConfig.mxllog.axiom * 3. runtimeConfig.axiom * 4. Environment variables: NUXT_AXIOM_*, AXIOM_* * * @example * ```ts * // Zero config - just set NUXT_AXIOM_TOKEN and NUXT_AXIOM_DATASET env vars * nitroApp.hooks.hook('mxllog:drain', createAxiomDrain()) * * // With overrides * nitroApp.hooks.hook('mxllog:drain', createAxiomDrain({ * dataset: 'my-dataset', * })) * ``` */ declare function createAxiomDrain(overrides?: Partial): (ctx: DrainContext | DrainContext[]) => Promise; /** * Send a single event to Axiom. * * @example * ```ts * await sendToAxiom(event, { * dataset: 'my-logs', * token: process.env.AXIOM_TOKEN!, * }) * ``` */ declare function sendToAxiom(event: WideEvent, config: AxiomConfig): Promise; /** * Send a batch of events to Axiom. * * @example * ```ts * await sendBatchToAxiom(events, { * dataset: 'my-logs', * token: process.env.AXIOM_TOKEN!, * }) * ``` */ declare function sendBatchToAxiom(events: WideEvent[], config: AxiomConfig): Promise; //#endregion export { AxiomConfig, createAxiomDrain, sendBatchToAxiom, sendToAxiom }; //# sourceMappingURL=axiom.d.mts.map