import { LoggerTransport } from "../../logging/logger_transport.js";
import type { Headers, InputReader, ResponseHeaders, RestateResponse } from "./types.js";
import { Logger } from "../../logging/logger.js";
export declare function tryCreateContextualLogger(loggerTransport: LoggerTransport, url: string, headers: Headers, additionalContext?: {
    [name: string]: string;
}): Logger | undefined;
export declare function invocationIdFromHeaders(headers: Headers): string;
export declare function errorResponse(code: number, message: string): RestateResponse;
export declare function simpleResponse(statusCode: number, headers: ResponseHeaders, body: Uint8Array): RestateResponse;
export declare function emptyInputReader(): InputReader;
/**
 * Bundles a `writeHead` callback with a Promise that resolves once the head
 * is committed. Used by adapters (fetch, lambda) that need to observe the
 * head commit from outside the `process()` call.
 */
export declare function captureHead(): {
    writeHead: (statusCode: number, headers: ResponseHeaders) => void;
    head: Promise<{
        statusCode: number;
        headers: ResponseHeaders;
    }>;
};
//# sourceMappingURL=utils.d.ts.map