import { HexString, EvmAddress, TxHash } from '@polymarket/types'; export { EvmAddress, TxHash } from '@polymarket/types'; import { z } from 'zod'; type Tagged = T & { readonly __tag: Tag; }; declare enum CommentParentEntityType { Event = "Event", Series = "Series" } declare enum OrderSide { BUY = "BUY", SELL = "SELL" } declare enum OrderType { GTC = "GTC", FOK = "FOK", GTD = "GTD", FAK = "FAK" } /** * Lifecycle status of a trade, from creation through on-chain settlement. * `Confirmed` and `Failed` are the terminal states. * `MatchedNotBroadcasted` currently appears only on trades read via REST, * not on user stream trade events. */ declare enum TradeStatus { Matched = "TRADE_STATUS_MATCHED", MatchedNotBroadcasted = "TRADE_STATUS_MATCHED_NOT_BROADCASTED", Mined = "TRADE_STATUS_MINED", Confirmed = "TRADE_STATUS_CONFIRMED", Retrying = "TRADE_STATUS_RETRYING", Failed = "TRADE_STATUS_FAILED" } type BestLineId = Tagged; type BuilderCode = Tagged; type Uuid = Tagged; type ApiKey = Tagged; type CategoryId = Tagged; type ChatId = Tagged; type ClobRewardId = Tagged; type CommentId = Tagged; type ComboActivityId = Tagged; type ComboConditionId = Tagged; type ConditionId = Tagged; /** @deprecated Use {@link ConditionId}. */ type CtfConditionId = ConditionId; type CollectionId = Tagged; type EventCreatorId = Tagged; type EventExternalPartnerMappingId = Tagged; type EpochMilliseconds = Tagged; type EventId = Tagged; type ImageOptimizationId = Tagged; type InternalUserId = Tagged; type IsoCalendarDateString = Tagged; type IsoDateTimeString = Tagged; type MarketId = Tagged; type MixedDateTimeString = Tagged; type NotificationId = Tagged; type OrderId = Tagged; type PartnerId = Tagged; type PaginationCursor = Tagged; type PositionId = Tagged; type QuestionId = Tagged; type ResolutionRequestId = Tagged; type RfqId = Tagged; type RfqQuoteId = Tagged; type RfqRequestorPublicId = Tagged; type SeriesId = Tagged; type SportId = Tagged; type TagId = Tagged; type TeamId = Tagged; type TemplateId = Tagged; type TransactionId = Tagged; type TokenId = Tagged; type DecimalString = Tagged; type BaseUnits = Tagged; declare function toBestLineId(value: string): BestLineId; declare function toBuilderCode(value: string): BuilderCode; declare function toUuid(value: string): Uuid; declare function toApiKey(value: string): ApiKey; declare function toCategoryId(value: string): CategoryId; declare function toChatId(value: string): ChatId; declare function toClobRewardId(value: string): ClobRewardId; declare function toCommentId(value: string): CommentId; declare function toComboActivityId(value: string): ComboActivityId; declare function toConditionId(value: string): ConditionId; /** @deprecated Use {@link toConditionId}. */ declare const toCtfConditionId: typeof toConditionId; declare function toComboConditionId(value: string): ComboConditionId; declare function toCollectionId(value: string): CollectionId; declare function toEventCreatorId(value: string): EventCreatorId; declare function toEventExternalPartnerMappingId(value: number): EventExternalPartnerMappingId; declare function toEpochMilliseconds(value: number): EpochMilliseconds; declare function toEventId(value: string): EventId; declare function toImageOptimizationId(value: string): ImageOptimizationId; declare function toInternalUserId(value: string): InternalUserId; declare function toIsoCalendarDateString(value: string): IsoCalendarDateString; declare function toIsoDateTimeString(value: string): IsoDateTimeString; declare function toMixedDateTimeString(value: string): MixedDateTimeString; declare function toMarketId(value: string): MarketId; declare function toNotificationId(value: number): NotificationId; declare function toOrderId(value: string): OrderId; declare function toPartnerId(value: number): PartnerId; declare function toPaginationCursor(value: string): PaginationCursor; declare function toPositionId(value: string): PositionId; declare function toQuestionId(value: string): QuestionId; declare function toResolutionRequestId(value: string): ResolutionRequestId; declare function toRfqId(value: string): RfqId; declare function toRfqQuoteId(value: string): RfqQuoteId; declare function toRfqRequestorPublicId(value: string): RfqRequestorPublicId; declare function toSeriesId(value: string): SeriesId; declare function toSportId(value: number): SportId; declare function toTagId(value: string): TagId; declare function toTeamId(value: number): TeamId; declare function toTemplateId(value: string): TemplateId; declare function toTransactionId(value: string): TransactionId; declare function toTokenId(value: string): TokenId; declare function toDecimalString(value: string): DecimalString; declare function toBaseUnits(value: string): BaseUnits; declare const CategoryIdSchema: z.ZodPipe>; declare const ApiKeySchema: z.ZodPipe>; declare const BuilderCodeSchema: z.ZodPipe>; declare const ClobRewardIdSchema: z.ZodPipe>; declare const CommentIdSchema: z.ZodPipe>; declare const ComboActivityIdSchema: z.ZodPipe>; declare const ComboConditionIdSchema: z.ZodPipe>; declare const ConditionIdSchema: z.ZodPipe>; /** @deprecated Use {@link ConditionIdSchema}. */ declare const CtfConditionIdSchema: z.ZodPipe>; declare const OptionalConditionIdSchema: z.ZodPipe, z.ZodOptional>>>; /** @deprecated Use {@link OptionalConditionIdSchema}. */ declare const OptionalCtfConditionIdSchema: z.ZodPipe, z.ZodOptional>>>; declare const ConditionIdResponseSchema: z.ZodCustom; declare const EvmAddressSchema: z.ZodPipe>; declare const EpochMillisecondsSchema: z.ZodPipe>; declare const EpochSecondsToMillisecondsSchema: z.ZodPipe>; declare const EpochMillisecondsStringSchema: z.ZodPipe>; declare const DateLikeToIsoDateTimeStringSchema: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; declare const EpochLikeToIsoDateTimeStringSchema: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; declare const OptionalDateLikeToIsoDateTimeStringSchema: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; declare const OptionalEpochLikeToIsoDateTimeStringSchema: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; declare const EpochMillisecondsToIsoDateTimeStringSchema: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; declare const OptionalEpochMillisecondsToIsoDateTimeStringSchema: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; declare const EventIdSchema: z.ZodPipe>]>, z.ZodTransform>; declare const TickSizeValueSchema: z.ZodUnion, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>; declare const IsoDateTimeStringSchema: z.ZodUnion<[z.ZodPipe>, z.ZodPipe>]>; declare const IsoCalendarDateStringSchema: z.ZodUnion<[z.ZodPipe>, z.ZodPipe>]>; declare const MixedDateTimeStringSchema: z.ZodPipe>; declare const ISODateStringSchema: z.ZodUnion<[z.ZodPipe>, z.ZodPipe>]>; declare const ISOCalendarDateSchema: z.ZodUnion<[z.ZodPipe>, z.ZodPipe>]>; declare const ImageOptimizationIdSchema: z.ZodPipe>; declare const InternalUserIdSchema: z.ZodPipe>; declare const MarketIdSchema: z.ZodPipe>; declare const NotificationIdSchema: z.ZodPipe>; declare const CommentParentEntityTypeSchema: z.ZodEnum; declare const OrderIdSchema: z.ZodPipe>; declare const OrderSideSchema: z.ZodEnum; declare const OrderTypeSchema: z.ZodEnum; declare const TradeStatusSchema: z.ZodPipe, z.ZodEnum>; declare const PaginationCursorSchema: z.ZodCustom; declare const PositionIdSchema: z.ZodPipe>; declare const QuestionIdSchema: z.ZodPipe>; declare const ResolutionRequestIdSchema: z.ZodPipe>; declare const RfqIdSchema: z.ZodPipe>; declare const RfqQuoteIdSchema: z.ZodPipe>; declare const RfqRequestorPublicIdSchema: z.ZodPipe>; declare const TagIdSchema: z.ZodPipe>; declare const TokenIdSchema: z.ZodPipe>; declare const TransactionIdSchema: z.ZodPipe>; declare const TxHashSchema: z.ZodPipe>; declare const DecimalStringSchema: z.ZodPipe>; declare const E6BigIntStringToDecimalStringSchema: z.ZodPipe>; declare const DecimalishSchema: z.ZodUnion>, z.ZodPipe>]>; declare const PositiveDecimalNumberSchema: z.ZodPipe>]>, z.ZodNumber>; declare const BaseUnitsSchema: z.ZodPipe>; type ISODateString = IsoDateTimeString; type ISOCalendarDateString = IsoCalendarDateString; type TickSizeValue = z.output; /** * Preprocess helper for upstream fields that serialize missing values as empty * strings. Use as `z.preprocess(emptyStringToNull, Schema.nullable())`, or * with `.nullish()` when the field can also be absent. */ declare function emptyStringToNull(value: unknown): unknown; /** * Optional decimal field whose upstream serialization uses an empty string * for missing values. Normalizes `''` to `null` so consumers never receive * an empty `DecimalString`; populated values parse as `DecimalStringSchema`. */ declare const OptionalDecimalStringSchema: z.ZodPipe, z.ZodOptional>>>>; export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdResponseSchema, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalDecimalStringSchema, OptionalEpochLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, type OrderId, OrderIdSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, TradeStatus, TradeStatusSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboActivityId, toComboConditionId, toCommentId, toConditionId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toOrderId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };