import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The percentage yield. */ export type Percent = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The type of yield. */ export declare enum BondYieldYieldType { YieldTypeUnspecified = "YIELD_TYPE_UNSPECIFIED", YieldToCall = "YIELD_TO_CALL", YieldToMaturity = "YIELD_TO_MATURITY", YieldToPut = "YIELD_TO_PUT", YieldToWorst = "YIELD_TO_WORST" } /** * The type of yield. */ export type BondYieldYieldTypeOpen = OpenEnum; /** * A percentage yield */ export type BondYield = { /** * The percentage yield. */ percent?: Percent | null | undefined; /** * The type of yield. */ yieldType?: BondYieldYieldTypeOpen | undefined; }; /** @internal */ export declare const Percent$inboundSchema: z.ZodType; /** @internal */ export type Percent$Outbound = { value?: string | undefined; }; /** @internal */ export declare const Percent$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Percent$ { /** @deprecated use `Percent$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Percent$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Percent$Outbound` instead. */ type Outbound = Percent$Outbound; } export declare function percentToJSON(percent: Percent): string; export declare function percentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BondYieldYieldType$inboundSchema: z.ZodType; /** @internal */ export declare const BondYieldYieldType$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BondYieldYieldType$ { /** @deprecated use `BondYieldYieldType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BondYieldYieldType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const BondYield$inboundSchema: z.ZodType; /** @internal */ export type BondYield$Outbound = { percent?: Percent$Outbound | null | undefined; yield_type?: string | undefined; }; /** @internal */ export declare const BondYield$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BondYield$ { /** @deprecated use `BondYield$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BondYield$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BondYield$Outbound` instead. */ type Outbound = BondYield$Outbound; } export declare function bondYieldToJSON(bondYield: BondYield): string; export declare function bondYieldFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bondyield.d.ts.map