import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * RestrictionCategory enumerates the kinds of restrictions a token can carry. * Ordered from least to most legally sensitive, matching the upstream * compliancev2service.v1.GatedFeature enum. * * @generated from enum data.v1.RestrictionCategory */ export declare enum RestrictionCategory { /** * @generated from enum value: RESTRICTION_CATEGORY_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: RESTRICTION_CATEGORY_IP_INFRINGEMENT = 1; */ IP_INFRINGEMENT = 1, /** * @generated from enum value: RESTRICTION_CATEGORY_SANCTIONED = 2; */ SANCTIONED = 2, /** * @generated from enum value: RESTRICTION_CATEGORY_DERIVATIVE = 3; */ DERIVATIVE = 3, /** * @generated from enum value: RESTRICTION_CATEGORY_TOKENIZED_COMMODITY = 4; */ TOKENIZED_COMMODITY = 4, /** * @generated from enum value: RESTRICTION_CATEGORY_SECURITY_PERMISSIONED = 5; */ SECURITY_PERMISSIONED = 5, /** * @generated from enum value: RESTRICTION_CATEGORY_SECURITY_PERMISSIONLESS = 6; */ SECURITY_PERMISSIONLESS = 6 } /** * TokenRestriction is the metadata-side signal that a token is restricted * in the caller's region. Country/subdivision is resolved server-side from * ctx.auth — never the request body. Empty list = no restrictions. * * Categories mirror compliancev2service.v1.GatedFeature 1:1; the mapping * lives server-side in the BL layer. data.v1 owns this contract so consumers * of @uniswap/client-data-api don't pull in @uniswap/client-compliancev2 as * a transitive dependency. * * @generated from message data.v1.TokenRestriction */ export declare class TokenRestriction extends Message { /** * @generated from field: data.v1.RestrictionCategory category = 1; */ category: RestrictionCategory; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "data.v1.TokenRestriction"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TokenRestriction; static fromJson(jsonValue: JsonValue, options?: Partial): TokenRestriction; static fromJsonString(jsonString: string, options?: Partial): TokenRestriction; static equals(a: TokenRestriction | PlainMessage | undefined, b: TokenRestriction | PlainMessage | undefined): boolean; }