import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { EndpointsMetadata } from "./endpointsmetadata.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { PipelineStage } from "./pipelinestage.js"; import { RouterAttempt } from "./routerattempt.js"; import { RouterParams } from "./routerparams.js"; import { RoutingStrategy } from "./routingstrategy.js"; export type OpenRouterMetadata = { attempt: number; attempts?: Array | undefined; endpoints: EndpointsMetadata; /** * Milliseconds measured for the generation, from dispatching the upstream request until its response body ended. Divide the completion token count by this for throughput. Absent when no upstream request was dispatched. */ generationTime?: number | undefined; isByok: boolean; params?: RouterParams | undefined; pipeline?: Array | undefined; region: string | null; requested: string; strategy: RoutingStrategy; summary: string; }; /** @internal */ export declare const OpenRouterMetadata$inboundSchema: z.ZodType; export declare function openRouterMetadataFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=openroutermetadata.d.ts.map