import { z } from 'zod'; import { C as Chain } from './types-CuSlc_YE.js'; interface RetryOptions { maxAttempts?: number; baseDelayMs?: number; maxDelayMs?: number; } declare const FeeConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; fundAddress: z.ZodOptional; marketplaceBps: z.ZodDefault; launchpadBps: z.ZodDefault; sponsorshipBps: z.ZodDefault; }, "strip", z.ZodTypeAny, { enabled: boolean; marketplaceBps: number; launchpadBps: number; sponsorshipBps: number; fundAddress?: string | undefined; }, { enabled?: boolean | undefined; fundAddress?: string | undefined; marketplaceBps?: number | undefined; launchpadBps?: number | undefined; sponsorshipBps?: number | undefined; }>; type FeeConfig = z.input; interface ResolvedFeeConfig { enabled: boolean; fundAddress: string | undefined; marketplaceBps: number; launchpadBps: number; sponsorshipBps: number; } declare function resolveFeeConfig(raw: FeeConfig | undefined): ResolvedFeeConfig; declare const MedialaneConfigSchema: z.ZodObject<{ chain: z.ZodDefault>; rpcUrl: z.ZodOptional; backendUrl: z.ZodOptional; apiKey: z.ZodOptional; marketplace721Contract: z.ZodOptional; marketplaceContract: z.ZodOptional; marketplace1155Contract: z.ZodOptional; collection721Contract: z.ZodOptional; collectionContract: z.ZodOptional; collection1155Contract: z.ZodOptional; retryOptions: z.ZodOptional; baseDelayMs: z.ZodOptional; maxDelayMs: z.ZodOptional; }, "strip", z.ZodTypeAny, { maxAttempts?: number | undefined; baseDelayMs?: number | undefined; maxDelayMs?: number | undefined; }, { maxAttempts?: number | undefined; baseDelayMs?: number | undefined; maxDelayMs?: number | undefined; }>>; feeConfig: z.ZodOptional; fundAddress: z.ZodOptional; marketplaceBps: z.ZodDefault; launchpadBps: z.ZodDefault; sponsorshipBps: z.ZodDefault; }, "strip", z.ZodTypeAny, { enabled: boolean; marketplaceBps: number; launchpadBps: number; sponsorshipBps: number; fundAddress?: string | undefined; }, { enabled?: boolean | undefined; fundAddress?: string | undefined; marketplaceBps?: number | undefined; launchpadBps?: number | undefined; sponsorshipBps?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { chain: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN"; rpcUrl?: string | undefined; backendUrl?: string | undefined; apiKey?: string | undefined; marketplace721Contract?: string | undefined; marketplaceContract?: string | undefined; marketplace1155Contract?: string | undefined; collection721Contract?: string | undefined; collectionContract?: string | undefined; collection1155Contract?: string | undefined; retryOptions?: { maxAttempts?: number | undefined; baseDelayMs?: number | undefined; maxDelayMs?: number | undefined; } | undefined; feeConfig?: { enabled: boolean; marketplaceBps: number; launchpadBps: number; sponsorshipBps: number; fundAddress?: string | undefined; } | undefined; }, { rpcUrl?: string | undefined; chain?: "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "STELLAR" | "BITCOIN" | undefined; backendUrl?: string | undefined; apiKey?: string | undefined; marketplace721Contract?: string | undefined; marketplaceContract?: string | undefined; marketplace1155Contract?: string | undefined; collection721Contract?: string | undefined; collectionContract?: string | undefined; collection1155Contract?: string | undefined; retryOptions?: { maxAttempts?: number | undefined; baseDelayMs?: number | undefined; maxDelayMs?: number | undefined; } | undefined; feeConfig?: { enabled?: boolean | undefined; fundAddress?: string | undefined; marketplaceBps?: number | undefined; launchpadBps?: number | undefined; sponsorshipBps?: number | undefined; } | undefined; }>; type MedialaneConfig = z.input; interface ResolvedConfig { chain: Chain; rpcUrl: string; backendUrl: string | undefined; apiKey: string | undefined; marketplace721Contract: string; marketplaceContract: string; marketplace1155Contract: string; collection721Contract: string; collectionContract: string; collection1155Contract: string; retryOptions?: RetryOptions; feeConfig: ResolvedFeeConfig; } declare function resolveConfig(raw: MedialaneConfig): ResolvedConfig; type IPType = "Audio" | "Art" | "Documents" | "NFT" | "Video" | "Photography" | "Patents" | "Posts" | "Publications" | "RWA" | "Software" | "Custom"; type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name"; type CollectionTokensSort = "recent" | "oldest" | "name" | "price"; type ServiceCapability = "list" | "buy" | "make_offer" | "cancel" | "transfer" | "burn" | "mint" | "claim" | "airdrop" | "remix" | "license" | "subscribe" | "redeem" | "launch" | "swap" | "sponsor"; interface EnforcementDeclaration { royalty?: "erc2981" | "service-split" | "none"; escrow?: boolean; timeLock?: boolean; revocable?: boolean; } interface ServiceEventDeclaration { name: string; emittedBy: "factory" | "instance"; poll?: "fast" | "slow"; } interface ServiceDefinition { id: string; displayName: string; description: string; standard: "ERC721" | "ERC1155" | "ERC20" | "UNKNOWN"; provenance: "MEDIALANE" | "EXTERNAL"; onchain?: Partial>; uiVariant: string; capabilities: ServiceCapability[]; events?: ServiceEventDeclaration[]; metadataSchema?: { requiredTraits?: string[]; licenseDefault?: string; enforcement?: EnforcementDeclaration; }; } interface ApiCollectionsQuery { page?: number; limit?: number; isKnown?: boolean; sort?: CollectionSort; owner?: string; service?: string; } type OrderStatus = "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED"; type SortOrder = "price_asc" | "price_desc" | "recent"; type ActivityType = "mint" | "transfer" | "sale" | "listing" | "offer" | "cancelled"; type IntentType = "CREATE_LISTING" | "MAKE_OFFER" | "FULFILL_ORDER" | "CANCEL_ORDER" | "MINT" | "CREATE_COLLECTION" | "COUNTER_OFFER"; type IntentStatus = "PENDING" | "SIGNED" | "SUBMITTED" | "CONFIRMED" | "FAILED" | "EXPIRED"; type WebhookEventType = "ORDER_CREATED" | "ORDER_FULFILLED" | "ORDER_CANCELLED" | "TRANSFER"; type WebhookStatus = "ACTIVE" | "DISABLED"; type ApiKeyStatus = "ACTIVE" | "REVOKED"; type TenantPlan = "FREE" | "PREMIUM"; interface ApiMeta { page: number; limit: number; total?: number; counts?: Record; } interface ApiResponse { data: T; meta?: ApiMeta; } type ChainFilter = Chain | "all"; interface ApiOrdersQuery { chain?: ChainFilter; status?: OrderStatus; collection?: string; currency?: string; sort?: SortOrder; page?: number; limit?: number; offerer?: string; minPrice?: string; maxPrice?: string; } interface ApiOrderOffer { itemType: string; token: string; identifier: string; startAmount: string; endAmount: string; } interface ApiOrderConsideration extends ApiOrderOffer { recipient: string; } interface ApiOrderPrice { raw: string | null; formatted: string | null; currency: string | null; decimals: number; } interface ApiOrderTxHash { created: string | null; fulfilled: string | null; cancelled: string | null; } interface ApiOrderTokenMeta { name: string | null; image: string | null; description: string | null; animationUrl: string | null; } interface ApiOrder { id: string; chain: string; orderHash: string; offerer: string; offer: ApiOrderOffer; consideration: ApiOrderConsideration; startTime: string; endTime: string; status: OrderStatus; fulfiller: string | null; nftContract: string | null; nftTokenId: string | null; price: ApiOrderPrice; txHash: ApiOrderTxHash; createdBlockNumber: string; remainingAmount: string | null; createdAt: string; updatedAt: string; token: ApiOrderTokenMeta | null; parentOrderHash?: string | null; counterOfferMessage?: string | null; hasActiveCounterOffer?: boolean; } interface IpAttribute { trait_type: string; value: string; } interface IpNftMetadata { name: string; description?: string; image?: string | null; external_url?: string; attributes?: IpAttribute[]; ipType?: string | null; licenseType?: string | null; commercialUse?: string | null; derivatives?: string | null; attribution?: string | null; territory?: string | null; aiPolicy?: string | null; royalty?: string | null; registration?: string | null; } interface ApiTokenMetadata { name: string | null; description: string | null; image: string | null; animationUrl: string | null; attributes: IpAttribute[] | null; ipType: string | null; licenseType: string | null; commercialUse: string | null; derivatives: string | null; attribution: string | null; territory: string | null; aiPolicy: string | null; royalty: string | null; registration: string | null; author: string | null; } interface ApiTokenBalance { owner: string; amount: string; } interface ApiToken { id: string; chain: string; contractAddress: string; tokenId: string; owner: string | null; tokenUri: string | null; metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED"; standard: "ERC721" | "ERC1155" | "UNKNOWN"; metadata: ApiTokenMetadata; balances: ApiTokenBalance[] | null; activeOrders: ApiOrder[]; createdAt: string; updatedAt: string; } interface ApiCollection { id: string; chain: string; contractAddress: string; collectionId: string | null; name: string | null; symbol: string | null; description: string | null; image: string | null; owner: string | null; startBlock: string; metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED"; standard: "ERC721" | "ERC1155"; isKnown: boolean; isHidden: boolean; isFeatured: boolean; service: string | null; claimedBy: string | null; profile?: ApiCollectionProfile | null; floorPrice: string | null; totalVolume: string | null; holderCount: number | null; totalSupply: number | null; createdAt: string; updatedAt: string; } interface ApiCoin { id: string; chain: string; contractAddress: string; standard: "ERC20"; service: string; name: string | null; symbol: string | null; decimals: number; totalSupply: string | null; description: string | null; image: string | null; creator: string | null; isLaunched?: boolean | null; startBlock: string; isHidden: boolean; createdAt: string; updatedAt: string; } interface ApiCoinPrice { usdc: number; } type ApiCoinPrices = Record; type ApiCoinClaimResult = { verified: true; coin: ApiCoin | null; } | { verified: false; reason: "owner_mismatch" | "owner_check_failed" | "not_erc20" | "no_total_supply"; }; interface ApiCoinsQuery { chain?: ChainFilter; page?: number; limit?: number; service?: string; } interface ApiActivityPrice { raw: string | null; formatted: string | null; currency: string | null; } interface ApiActivity { type: ActivityType; chain: Chain; contractAddress?: string; tokenId?: string; from?: string; to?: string; blockNumber?: string; amount?: string; orderHash?: string; nftContract?: string; nftTokenId?: string; offerer?: string; fulfiller?: string | null; price?: ApiActivityPrice; tokenStandard?: "ERC721" | "ERC1155"; txHash: string | null; timestamp: string; token?: { name: string | null; image: string | null; animationUrl: string | null; } | null; } interface ApiActivitiesQuery { chain?: ChainFilter; type?: ActivityType; contract?: string; page?: number; limit?: number; } interface ApiComment { id: string; chain: string; contractAddress: string; tokenId: string; author: string; content: string; txHash: string | null; blockNumber: string; postedAt: string; } interface ApiSearchTokenResult { contractAddress: string; tokenId: string; name: string | null; image: string | null; owner: string; metadataStatus: string; } interface ApiSearchCollectionResult { contractAddress: string; name: string | null; image: string | null; totalSupply: number | null; floorPrice: string | null; holderCount: number | null; } interface ApiSearchCreatorResult { walletAddress: string; username: string | null; name: string | null; bio: string | null; avatarImage: string | null; } interface ApiSearchResult { tokens: ApiSearchTokenResult[]; collections: ApiSearchCollectionResult[]; creators: ApiSearchCreatorResult[]; } interface ApiIntent { id: string; chain: string; type: IntentType; status: IntentStatus; requester: string; typedData: unknown; calls: unknown; signature: string[]; txHash: string | null; orderHash: string | null; parentOrderHash?: string | null; counterOfferMessage?: string | null; expiresAt: string; createdAt: string; updatedAt: string; } interface IntentCall { contractAddress: string; entrypoint: string; calldata: string[]; } type ApiIntentCreated = { id: string; expiresAt: string; requiresSignature: true; typedData: unknown; } | { id: string; expiresAt: string; requiresSignature: false; calls: IntentCall[]; }; interface ApiTxSyncResult { applied: number; contracts?: string[]; pending: boolean; } interface CreateListingIntentParams { offerer: string; nftContract: string; tokenId: string; currency: string; price: string; endTime: number; salt?: string; amount?: string; } interface MakeOfferIntentParams { offerer: string; nftContract: string; tokenId: string; currency: string; price: string; endTime: number; salt?: string; tokenStandard?: string; quantity?: string; } interface FulfillOrderIntentParams { fulfiller: string; orderHash: string; tokenStandard?: string; quantity?: string; } interface CancelOrderIntentParams { offerer: string; orderHash: string; tokenStandard?: string; } type FactoryFamilyServiceId = "mip-erc1155" | "ip-tickets" | "ip-ticketing" | "ip-club"; type TierServiceId = "ip-tickets" | "ip-ticketing" | "ip-club"; type CollectionServiceId = FactoryFamilyServiceId | "pop-protocol" | "drop-collection" | "data-tokenization-erc721"; interface CreateMintIntentParams { owner: string; recipient: string; collectionId?: string; tokenUri?: string; royaltyBps?: number; tokenId?: string; amount?: string; value?: string; collectionContract?: string; } interface CreateCollectionIntentParams { owner: string; name: string; symbol: string; description?: string; image?: string; baseUri?: string; collectionContract?: string; service?: CollectionServiceId; claimEndTimestamp?: number; eventType?: PopEventType; maxSupply?: string; conditions?: { startTime: number; endTime: number; price: string; paymentToken: string; maxQuantityPerWallet: string; }; } interface CheckoutIntentItem { orderHash: string; quantity?: string; } interface CreateCheckoutIntentParams { fulfiller: string; items?: CheckoutIntentItem[]; orderHashes?: string[]; } interface ApiCheckoutIntentResult { id?: string; orderHash: string; requiresSignature?: false; calls?: unknown; expiresAt?: string; error?: string; } interface CreateTierIntentParams { owner: string; collection: string; service: TierServiceId; maxSupply: string; startTime?: number; endTime?: number; royaltyBps: number; metadataUri: string; } interface EmissionParams { chain?: "STARKNET"; service: string; owner: string; recipientScheme?: string; recipients: string[]; tokenUri?: string; collectionId?: string; collectionContract?: string; tokenId?: string; amount?: string; batchSize?: number; } interface ApiEmissionCall { contractAddress: string; entrypoint: string; calldata: string[]; } interface ApiEmissionResult { service: string; recipientCount: number; callCount: number; batches: ApiEmissionCall[][]; } interface CreateCoinIntentParams { owner: string; name: string; symbol: string; initialSupply: string; salt?: string; } interface LaunchCoinIntentParams { owner: string; creatorCoin: string; quoteToken: string; price: number; initialHolders: string[]; initialHoldersAmounts: string[]; transferRestrictionDelay?: number; maxPercentageBuyLaunch?: number; quoteFundAmount?: string; } interface CreateSponsorshipOfferIntentParams { author: string; nftContract: string; tokenId: string; minAmount: string; duration: number; paymentToken: string; licenseTermsUri: string; transferable: boolean; royaltyBps: number; specificSponsor?: string; } interface SetSponsorshipOfferOpenIntentParams { author: string; offerId: string; open: boolean; } interface PlaceSponsorshipBidIntentParams { sponsor: string; offerId: string; amount: string; paymentToken: string; } interface RetractSponsorshipBidIntentParams { sponsor: string; offerId: string; } interface AcceptSponsorshipBidIntentParams { author: string; offerId: string; sponsor: string; } interface CreateSponsorshipProposalIntentParams { proposer: string; nftContract: string; tokenId: string; amount: string; duration: number; validUntil?: number; paymentToken: string; licenseTermsUri: string; transferable: boolean; royaltyBps: number; } interface WithdrawSponsorshipProposalIntentParams { proposer: string; proposalId: string; } interface AcceptSponsorshipProposalIntentParams { owner: string; proposalId: string; } interface RejectSponsorshipProposalIntentParams { owner: string; proposalId: string; } interface CreateCounterOfferIntentParams { sellerAddress: string; originalOrderHash: string; priceRaw: string; durationSeconds: number; message?: string; } interface ApiCounterOffersQuery { originalOrderHash?: string; sellerAddress?: string; page?: number; limit?: number; } declare const OPEN_LICENSES: readonly ["CC0", "CC BY", "CC BY-SA", "CC BY-NC"]; type OpenLicense = (typeof OPEN_LICENSES)[number]; type RemixOfferStatus = "PENDING" | "AUTO_PENDING" | "APPROVED" | "COMPLETED" | "REJECTED" | "EXPIRED" | "SELF_MINTED"; interface ApiRemixOfferPrice { raw: string; formatted: string; currency: string; decimals: number; } interface ApiRemixOffer { id: string; status: RemixOfferStatus; originalContract: string; originalTokenId: string; creatorAddress: string; requesterAddress: string | null; message?: string | null; price?: ApiRemixOfferPrice; licenseType: string; commercial: boolean; derivatives: boolean; royaltyPct: number | null; approvedCollection: string | null; remixContract: string | null; remixTokenId: string | null; orderHash: string | null; createdAt: string; expiresAt: string; updatedAt: string; } interface ApiPublicRemix { id: string; remixContract: string | null; remixTokenId: string | null; licenseType: string; commercial: boolean; derivatives: boolean; createdAt: string; } interface CreateRemixOfferParams { originalContract: string; originalTokenId: string; licenseType: string; commercial: boolean; derivatives: boolean; royaltyPct?: number; proposedPrice?: string; proposedCurrency?: string; message?: string; expiresInDays?: number; } interface AutoRemixOfferParams { originalContract: string; originalTokenId: string; licenseType: string; } interface ConfirmSelfRemixParams { originalContract: string; originalTokenId: string; remixContract: string; remixTokenId: string; txHash?: string; licenseType: string; commercial: boolean; derivatives: boolean; royaltyPct?: number; } interface ConfirmRemixOfferParams { approvedCollection: string; remixContract: string; remixTokenId: string; orderHash?: string; } interface ApiRemixOffersQuery { role: "creator" | "requester"; page?: number; limit?: number; } interface ApiMetadataSignedUrl { url: string; } interface ApiMetadataUpload { cid: string; url: string; } interface ApiPortalMe { id: string; accountId: string; plan: TenantPlan; status: string; creditBalance: number; } interface ApiPortalKey { id: string; prefix: string; label: string | null; appSource: string | null; status: ApiKeyStatus; lastUsedAt: string | null; createdAt: string; } interface ApiPortalKeyCreated { id: string; prefix: string; label: string | null; plaintext: string; } interface ApiCreditPayment { id: string; asset: string; amountAtomic: string; creditedAmount: number; mdlnMultiplier: number; txHash: string; status: string; createdAt: string; } interface ApiSpendByAction { actionKey: string; credits: number; units: number; } interface ApiPortalSpend { recent: Array<{ actionKey: string; credits: number; createdAt: string; }>; byAction: ApiSpendByAction[]; spent: number; credited: number; drift: number; } interface ApiWebhookEndpoint { id: string; url: string; events: WebhookEventType[]; status: WebhookStatus; createdAt: string; } interface ApiWebhookCreated extends ApiWebhookEndpoint { secret: string; } interface CreateWebhookParams { url: string; events: WebhookEventType[]; label?: string; } interface ApiCollectionProfile { contractAddress: string; chain: string; displayName: string | null; description: string | null; image: string | null; bannerImage: string | null; websiteUrl: string | null; twitterUrl: string | null; discordUrl: string | null; telegramUrl: string | null; hasGatedContent: boolean; gatedContentTitle: string | null; slug: string | null; updatedBy: string | null; updatedAt: string; } interface UpdateCollectionProfileInput { displayName?: string | null; description?: string | null; image?: string | null; bannerImage?: string | null; websiteUrl?: string | null; twitterUrl?: string | null; discordUrl?: string | null; telegramUrl?: string | null; gatedContentTitle?: string | null; gatedContentUrl?: string | null; gatedContentType?: "VIDEO" | "STREAM" | "AUDIO" | "DOCUMENT" | "LINK" | null; } interface ApiCollectionSlugClaim { id: string; slug: string; contractAddress: string; chain: string; walletAddress: string; status: "PENDING" | "APPROVED" | "REJECTED"; adminNotes: string | null; notifyEmail: string | null; reviewedAt: string | null; createdAt: string; updatedAt: string; } interface ApiCreatorProfile { walletAddress: string; chain: string; username: string | null; name: string | null; bio: string | null; avatarImage: string | null; collectionImage?: string | null; websiteUrl: string | null; twitterUrl: string | null; discordUrl: string | null; telegramUrl: string | null; updatedAt: string; } interface ApiCreatorListResult { creators: ApiCreatorProfile[]; total: number; page: number; limit: number; } type ApiAppSource = "MEDIALANE_STARKNET" | "MEDIALANE_IO" | "MEDIALANE_PORTAL" | "MEDIALANE_SDK" | "MEDIALANE_DAPP"; type ApiChain = "STARKNET" | "ETHEREUM" | "SOLANA" | "BASE" | "BITCOIN"; interface ApiUserWallet { walletAddress: string; email?: string | null; emailVerified?: boolean; requiresEmailVerification?: boolean; } interface ApiCollectionClaim { id: string; contractAddress: string; chain: string; claimantAddress: string | null; status: "PENDING" | "AUTO_APPROVED" | "APPROVED" | "REJECTED"; verificationMethod: "ONCHAIN" | "SIGNATURE" | "MANUAL"; createdAt: string; } interface ApiAdminCollectionClaim extends ApiCollectionClaim { claimantEmail: string | null; notes: string | null; adminNotes: string | null; reviewedBy: string | null; reviewedAt: string | null; updatedAt: string; } interface ApiBusinessProvisioning { id: string; accountId: string; chain: string; walletAddress: string; recipientScheme: string; recipientValue: string; interimOwnerPubkey: string; newOwnerPubkey: string | null; status: "DEPLOYED" | "HANDOFF" | "TRANSFERRED"; } interface ApiWalletActivity { id: string; chain: string; accountAddress: string; type: "SEND" | "RECEIVE" | "SWAP" | "DEPLOY" | "GUARDIAN_SET" | "GUARDIAN_TRIGGER_ESCAPE" | "GUARDIAN_COMPLETE_ESCAPE" | "GUARDIAN_CANCEL_ESCAPE"; txHash: string; blockNumber: string; timestamp: string; tokenAddress: string | null; amount: string | null; counterparty: string | null; tokenInAddress: string | null; amountIn: string | null; tokenOutAddress: string | null; amountOut: string | null; } interface PopClaimStatus { isEligible: boolean; hasClaimed: boolean; tokenId: string | null; } interface PopBatchEligibilityItem extends PopClaimStatus { wallet: string; } type PopEventType = "Conference" | "Bootcamp" | "Workshop" | "Hackathon" | "Meetup" | "Course" | "Other"; interface DropMintStatus { mintedByWallet: number; totalMinted: number; } interface ApiRewardsBadge { key: string; name: string; description: string; icon: string; color: string; category: string; } interface ApiRewardsLevel { level: number; name: string; xpRequired: number; badgeColor: string; description: string | null; } interface ApiUserRewards { address: string; accountId: string | null; publicId: string | null; totalXp: number; currentLevel: number; currentLevelName: string; badgeColor: string; nextLevel: { level: number; name: string; xpRequired: number; } | null; progressPct: number; breakdown: Record; badges: ApiRewardsBadge[]; computedAt: string | null; } interface ApiRewardsLeaderboardEntry { rank: number; address: string; accountId: string | null; publicId: string | null; totalXp: number; currentLevel: number; currentLevelName: string; badgeColor: string; } interface ApiRewardsConfig { levels: ApiRewardsLevel[]; actions: { type: string; label: string; xp: number; dailyCap: number | null; }[]; badges: ApiRewardsBadge[]; } interface ApiRewardsBatchEntry { address: string; totalXp: number; currentLevel: number; currentLevelName: string; badgeColor: string; } interface ApiPointEvent { id: string; actionType: string; xp: number; multiplier: number; finalXp: number; txHash: string | null; createdAt: string; } type MedialaneErrorCode = "TOKEN_NOT_FOUND" | "COLLECTION_NOT_FOUND" | "ORDER_NOT_FOUND" | "INTENT_NOT_FOUND" | "INTENT_EXPIRED" | "RATE_LIMITED" | "NETWORK_NOT_SUPPORTED" | "APPROVAL_FAILED" | "TRANSACTION_FAILED" | "INVALID_PARAMS" | "UNAUTHORIZED" | "UNKNOWN"; declare class MedialaneApiError extends Error { readonly status: number; readonly retryAfterMs?: number | undefined; readonly details?: unknown | undefined; readonly code: MedialaneErrorCode; constructor(status: number, message: string, retryAfterMs?: number | undefined, details?: unknown | undefined); } declare class ApiClient { private readonly baseUrl; private readonly chain; private readonly baseHeaders; private readonly retryOptions; constructor(baseUrl: string, apiKey?: string, retryOptions?: RetryOptions, chain?: Chain); private addr; private request; private get; private post; private patch; private del; private bearer; private asSubject; getOrders(query?: ApiOrdersQuery): Promise>; getOrder(orderHash: string): Promise>; getActiveOrdersForToken(contract: string, tokenId: string): Promise>; getOrdersByUser(address: string, page?: number, limit?: number): Promise>; getToken(contract: string, tokenId: string, wait?: boolean): Promise>; getTokensByOwner(address: string, page?: number, limit?: number): Promise>; getTokenHistory(contract: string, tokenId: string, page?: number, limit?: number): Promise>; getCollections(page?: number, limit?: number, isKnown?: boolean, sort?: CollectionSort, service?: string, chain?: ChainFilter, standard?: string): Promise>; getCollectionsByOwner(owner: string, page?: number, limit?: number): Promise>; getCollection(contract: string): Promise>; getCollectionTokens(contract: string, page?: number, limit?: number, sort?: CollectionTokensSort): Promise>; getActivities(query?: ApiActivitiesQuery): Promise>; getActivitiesByAddress(address: string, page?: number, limit?: number): Promise>; getTokenComments(contract: string, tokenId: string, opts?: { page?: number; limit?: number; }): Promise>; search(q: string, limit?: number, chain?: ChainFilter): Promise & { query: string; }>; createListingIntent(params: CreateListingIntentParams): Promise>; createOfferIntent(params: MakeOfferIntentParams): Promise>; createFulfillIntent(params: FulfillOrderIntentParams): Promise>; createCancelIntent(params: CancelOrderIntentParams): Promise>; createCheckoutIntent(params: CreateCheckoutIntentParams): Promise<{ data: ApiCheckoutIntentResult[]; }>; getIntent(id: string): Promise>; submitIntentSignature(id: string, signature: string[]): Promise>; confirmIntent(id: string, txHash: string): Promise>; syncTransaction(txHash: string): Promise>; createMintIntent(params: CreateMintIntentParams): Promise>; createCollectionIntent(params: CreateCollectionIntentParams): Promise>; createTierIntent(params: CreateTierIntentParams): Promise>; emitToRecipients(params: EmissionParams): Promise>; createCoinIntent(params: CreateCoinIntentParams): Promise>; launchCoinIntent(params: LaunchCoinIntentParams): Promise>; createSponsorshipOfferIntent(params: CreateSponsorshipOfferIntentParams): Promise>; setSponsorshipOfferOpenIntent(params: SetSponsorshipOfferOpenIntentParams): Promise>; placeSponsorshipBidIntent(params: PlaceSponsorshipBidIntentParams): Promise>; retractSponsorshipBidIntent(params: RetractSponsorshipBidIntentParams): Promise>; acceptSponsorshipBidIntent(params: AcceptSponsorshipBidIntentParams): Promise>; createSponsorshipProposalIntent(params: CreateSponsorshipProposalIntentParams): Promise>; withdrawSponsorshipProposalIntent(params: WithdrawSponsorshipProposalIntentParams): Promise>; acceptSponsorshipProposalIntent(params: AcceptSponsorshipProposalIntentParams): Promise>; rejectSponsorshipProposalIntent(params: RejectSponsorshipProposalIntentParams): Promise>; createCounterOfferIntent(params: CreateCounterOfferIntentParams, siwsToken?: string): Promise>; getCounterOffers(query: ApiCounterOffersQuery): Promise>; getMetadataSignedUrl(kind?: "image" | "document" | "media"): Promise>; uploadMetadata(metadata: Record): Promise>; resolveMetadata(uri: string): Promise>; uploadFile(file: File): Promise>; getMe(siwsToken?: string): Promise>; getApiKeys(siwsToken?: string): Promise>; createApiKey(input?: { label?: string; appSource?: string; }, siwsToken?: string): Promise>; deleteApiKey(id: string, siwsToken?: string): Promise>; getCreditHistory(siwsToken?: string): Promise>; getSpend(siwsToken?: string): Promise>; checkDeposit(txHash: string, siwsToken?: string): Promise>; getWebhooks(): Promise>; createWebhook(params: CreateWebhookParams): Promise>; deleteWebhook(id: string): Promise>; claimCollection(contractAddress: string, walletAddress: string, siwsToken: string): Promise<{ verified: boolean; collection?: ApiCollection; reason?: string; }>; requestCollectionClaim(params: { contractAddress: string; walletAddress?: string; email: string; notes?: string; }): Promise<{ claim: ApiCollectionClaim; }>; registerBusinessProvisioning(params: { chain: "STARKNET"; recipientScheme: string; recipientValue: string; interimOwnerPubkey: string; derivationSalt: string; deployment: { typedData: unknown; signature: string[]; deployment: unknown; }; }): Promise & { reusedExistingWallet?: boolean; }>; completeBusinessProvisioning(id: string): Promise>; getCollectionProfile(contractAddress: string): Promise; updateCollectionProfile(contractAddress: string, data: UpdateCollectionProfileInput, siwsToken: string): Promise; getWalletActivity(address: string, chain?: "STARKNET"): Promise>; getGatedContent(contractAddress: string, siwsToken: string): Promise<{ title: string; url: string; type: string; } | null>; getCreators(opts?: { search?: string; page?: number; limit?: number; }): Promise; getCreatorProfile(walletAddress: string): Promise; getCreatorByUsername(username: string): Promise; updateCreatorProfile(walletAddress: string, data: Partial>, siwsToken: string): Promise; checkCollectionSlugAvailability(slug: string): Promise<{ available: boolean; reason?: string; }>; submitCollectionSlugClaim(contractAddress: string, slug: string, siwsToken: string, notifyEmail?: string): Promise<{ claim: ApiCollectionSlugClaim; }>; getMyCollectionSlugClaims(siwsToken: string): Promise<{ claims: ApiCollectionSlugClaim[]; }>; getCollectionBySlug(slug: string): Promise; registerUser(params: { walletAddress: string; walletType?: string; appSource?: ApiAppSource; chain?: ApiChain; }): Promise<{ accountId: string; publicId: string; walletAddress: string; chain: string; provider: string; appSource: ApiAppSource; createdAt: string; }>; upsertMyWallet(siwsToken: string, options?: { walletType?: string; appSource?: ApiAppSource; chain?: ApiChain; emailVerificationToken?: string; email?: string; accountToken?: string; }): Promise; checkEmailExists(email: string): Promise; getMyWallet(siwsToken: string): Promise; changeMyEmail(email: string, siwsToken: string): Promise<{ email: string; emailVerified: boolean; }>; getTokenRemixes(contract: string, tokenId: string, opts?: { page?: number; limit?: number; }): Promise>; submitRemixOffer(params: CreateRemixOfferParams, siwsToken: string): Promise>; submitAutoRemixOffer(params: AutoRemixOfferParams, siwsToken: string): Promise>; confirmSelfRemix(params: ConfirmSelfRemixParams, siwsToken: string): Promise>; getRemixOffers(query: ApiRemixOffersQuery, siwsToken: string): Promise>; getRemixOffer(id: string, siwsToken?: string): Promise>; confirmRemixOffer(id: string, params: ConfirmRemixOfferParams, siwsToken: string): Promise>; rejectRemixOffer(id: string, siwsToken: string): Promise>; extendRemixOffer(id: string, days: number, siwsToken: string): Promise>; getPopCollections(opts?: { page?: number; limit?: number; sort?: CollectionSort; }): Promise>; getPopEligibility(collection: string, wallet: string): Promise; getPopEligibilityBatch(collection: string, wallets: string[]): Promise; getCoins(opts?: ApiCoinsQuery): Promise>; getCoin(contract: string): Promise<{ data: ApiCoin; }>; getCoinPrices(): Promise>; claimCoin(coinAddress: string, siwsToken: string): Promise; getCoinClaims(status?: string): Promise>; updateCoinProfile(contract: string, data: { image?: string; description?: string; }, siwsToken: string): Promise>; getDropCollections(opts?: { page?: number; limit?: number; sort?: CollectionSort; }): Promise>; getDropMintStatus(collection: string, wallet: string): Promise; getRewards(address: string): Promise; getRewardsLeaderboard(page?: number, limit?: number): Promise>; getRewardsEvents(address: string, page?: number, limit?: number): Promise>; getRewardsConfig(): Promise; getRewardsBatch(addresses: string[]): Promise; } interface OfferItem { item_type: string; token: string; identifier_or_criteria: string; amount: string; } interface ConsiderationItem extends OfferItem { recipient: string; } interface OrderParameters { offerer: string; marketplace: string; offer: OfferItem; consideration: ConsiderationItem; royalty_max_bps: string; start_time: string; end_time: string; salt: string; counter: string; } interface Order { parameters: OrderParameters; signature: string[]; } interface TxResult { txHash: string; } interface OrderDetails { offerer: string; offer: OfferItem; consideration: ConsiderationItem; royalty_max_bps: string; start_time: bigint; end_time: bigint; order_status: string; counter: string; remaining_amount?: string; } interface CreatePopCollectionParams { name: string; symbol: string; baseUri: string; claimEndTime: number; eventType: PopEventType; } interface ClaimConditions { startTime: number; endTime: number; price: bigint | string; paymentToken: string; maxQuantityPerWallet: bigint | string; } interface CreateDropParams { name: string; symbol: string; baseUri: string; maxSupply: bigint | string; initialConditions: ClaimConditions; } interface CreateTicketParams { collection: string; maxSupply: bigint | string; startTime?: number; endTime?: number; royaltyBps: number; metadataUri: string; } interface MintTicketsParams { collection: string; tokenId: bigint | string; to: string; amount: bigint | string; } interface CreateMembershipParams { collection: string; maxSupply: bigint | string; startTime?: number; endTime?: number; royaltyBps: number; metadataUri: string; } interface MintMembershipsParams { collection: string; tokenId: bigint | string; to: string; amount: bigint | string; } interface CreateSponsorshipOfferParams { nftContract: string; tokenId: bigint | string; minAmount: bigint | string; duration: number; paymentToken: string; licenseTermsUri: string; transferable: boolean; royaltyBps: bigint | string; specificSponsor?: string; } interface ProposeSponsorshipParams { nftContract: string; tokenId: bigint | string; amount: bigint | string; duration: number; validUntil?: number; paymentToken: string; licenseTermsUri: string; transferable: boolean; royaltyBps: bigint | string; } export { type ApiRemixOffersQuery as $, type AcceptSponsorshipBidIntentParams as A, type ApiCreditPayment as B, type ApiEmissionCall as C, type ApiEmissionResult as D, type ApiIntent as E, type ApiIntentCreated as F, type ApiKeyStatus as G, type ApiMeta as H, type ApiMetadataSignedUrl as I, type ApiMetadataUpload as J, type ApiOrder as K, type ApiOrderConsideration as L, type ApiOrderOffer as M, type ApiOrderPrice as N, type ApiOrderTokenMeta as O, type ApiOrderTxHash as P, type ApiOrdersQuery as Q, type ResolvedFeeConfig as R, type ServiceDefinition as S, type ApiPointEvent as T, type ApiPortalKey as U, type ApiPortalKeyCreated as V, type ApiPortalMe as W, type ApiPortalSpend as X, type ApiPublicRemix as Y, type ApiRemixOffer as Z, type ApiRemixOfferPrice as _, type ServiceCapability as a, type MedialaneConfig as a$, type ApiResponse as a0, type ApiRewardsBadge as a1, type ApiRewardsBatchEntry as a2, type ApiRewardsConfig as a3, type ApiRewardsLeaderboardEntry as a4, type ApiRewardsLevel as a5, type ApiSearchCollectionResult as a6, type ApiSearchCreatorResult as a7, type ApiSearchResult as a8, type ApiSearchTokenResult as a9, type CreateListingIntentParams as aA, type CreateMembershipParams as aB, type CreateMintIntentParams as aC, type CreatePopCollectionParams as aD, type CreateRemixOfferParams as aE, type CreateSponsorshipOfferIntentParams as aF, type CreateSponsorshipOfferParams as aG, type CreateSponsorshipProposalIntentParams as aH, type CreateTicketParams as aI, type CreateTierIntentParams as aJ, type CreateWebhookParams as aK, type DropMintStatus as aL, type EmissionParams as aM, type EnforcementDeclaration as aN, type FactoryFamilyServiceId as aO, type FeeConfig as aP, FeeConfigSchema as aQ, type FulfillOrderIntentParams as aR, type IPType as aS, type IntentCall as aT, type IntentStatus as aU, type IntentType as aV, type IpAttribute as aW, type IpNftMetadata as aX, type LaunchCoinIntentParams as aY, type MakeOfferIntentParams as aZ, MedialaneApiError as a_, type ApiSpendByAction as aa, type ApiToken as ab, type ApiTokenBalance as ac, type ApiTokenMetadata as ad, type ApiTxSyncResult as ae, type ApiUserRewards as af, type ApiUserWallet as ag, type ApiWalletActivity as ah, type ApiWebhookCreated as ai, type ApiWebhookEndpoint as aj, type AutoRemixOfferParams as ak, type CancelOrderIntentParams as al, type ChainFilter as am, type CheckoutIntentItem as an, type ClaimConditions as ao, type CollectionServiceId as ap, type CollectionSort as aq, type CollectionTokensSort as ar, type ConfirmRemixOfferParams as as, type ConfirmSelfRemixParams as at, type ConsiderationItem as au, type CreateCheckoutIntentParams as av, type CreateCoinIntentParams as aw, type CreateCollectionIntentParams as ax, type CreateCounterOfferIntentParams as ay, type CreateDropParams as az, type AcceptSponsorshipProposalIntentParams as b, type MedialaneErrorCode as b0, type MintMembershipsParams as b1, type MintTicketsParams as b2, OPEN_LICENSES as b3, type OfferItem as b4, type OpenLicense as b5, type Order as b6, type OrderDetails as b7, type OrderParameters as b8, type OrderStatus as b9, type PlaceSponsorshipBidIntentParams as ba, type PopBatchEligibilityItem as bb, type PopClaimStatus as bc, type PopEventType as bd, type ProposeSponsorshipParams as be, type RejectSponsorshipProposalIntentParams as bf, type RemixOfferStatus as bg, type ResolvedConfig as bh, type RetractSponsorshipBidIntentParams as bi, type RetryOptions as bj, type ServiceEventDeclaration as bk, type SetSponsorshipOfferOpenIntentParams as bl, type SortOrder as bm, type TenantPlan as bn, type TierServiceId as bo, type TxResult as bp, type UpdateCollectionProfileInput as bq, type WebhookEventType as br, type WebhookStatus as bs, type WithdrawSponsorshipProposalIntentParams as bt, resolveConfig as bu, resolveFeeConfig as bv, type ActivityType as c, type ApiActivitiesQuery as d, type ApiActivity as e, type ApiActivityPrice as f, type ApiAdminCollectionClaim as g, type ApiAppSource as h, type ApiBusinessProvisioning as i, type ApiChain as j, type ApiCheckoutIntentResult as k, ApiClient as l, type ApiCoin as m, type ApiCoinClaimResult as n, type ApiCoinPrice as o, type ApiCoinPrices as p, type ApiCoinsQuery as q, type ApiCollection as r, type ApiCollectionClaim as s, type ApiCollectionProfile as t, type ApiCollectionSlugClaim as u, type ApiCollectionsQuery as v, type ApiComment as w, type ApiCounterOffersQuery as x, type ApiCreatorListResult as y, type ApiCreatorProfile as z };