/** * Request Preparation and Context Management (Simplified) * * Utilities for preparing request configurations with enriched headers * and tracking context. Simplified version without unified processor. */ import { AsyncLocalStorage } from 'node:async_hooks'; import type { ApiHeaders, ApiConfig, EnrichedHeadersOptions } from '@plyaz/types/api'; /** * Context for headers that flow through service calls */ export declare const headersContext: AsyncLocalStorage; /** * Get current headers from context */ export declare function getContextHeaders(): ApiHeaders; /** * Run function with headers in context */ export declare function runWithHeaders(headers: ApiHeaders, fn: () => T): T; /** * Run async function with headers in context */ export declare function runWithHeadersAsync(headers: ApiHeaders, fn: () => Promise): Promise; /** * Prepare request configuration with simple three-level precedence * Global -> Client -> Request (highest priority) */ export declare function prepareRequestConfig(requestConfig?: Partial, clientConfig?: Partial): Promise; /** * Prepare request configuration with enriched headers support */ export declare function prepareRequestConfigWithEnrichedHeaders(requestConfig?: Partial, clientConfig?: Partial, enrichedHeadersOptions?: EnrichedHeadersOptions): Promise; //# sourceMappingURL=prepare.d.ts.map