import { z } from 'zod'; import { ToolBubble } from '../../types/tool-bubble-class.js'; import type { BubbleContext } from '../../types/bubble.js'; import { CredentialType, type BubbleName } from '@bubblelab/shared-schemas'; declare const TikTokToolParamsSchema: z.ZodObject<{ operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>; profiles: z.ZodOptional>; hashtags: z.ZodOptional>; videoUrls: z.ZodOptional>; limit: z.ZodOptional>; shouldDownloadVideos: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; credentials?: Partial> | undefined; limit?: number | undefined; hashtags?: string[] | undefined; profiles?: string[] | undefined; shouldDownloadVideos?: boolean | undefined; videoUrls?: string[] | undefined; }, { operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; credentials?: Partial> | undefined; limit?: number | undefined; hashtags?: string[] | undefined; profiles?: string[] | undefined; shouldDownloadVideos?: boolean | undefined; videoUrls?: string[] | undefined; }>; declare const TikTokToolResultSchema: z.ZodObject<{ operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>; videos: z.ZodArray; text: z.ZodNullable; createTime: z.ZodNullable; createTimeISO: z.ZodNullable; author: z.ZodNullable; uniqueId: z.ZodNullable; nickname: z.ZodNullable; avatarThumb: z.ZodNullable; signature: z.ZodNullable; verified: z.ZodNullable; followerCount: z.ZodNullable; followingCount: z.ZodNullable; videoCount: z.ZodNullable; heartCount: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; }, { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; }>>; stats: z.ZodNullable; shareCount: z.ZodNullable; commentCount: z.ZodNullable; playCount: z.ZodNullable; collectCount: z.ZodNullable; }, "strip", z.ZodTypeAny, { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; }, { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; }>>; videoUrl: z.ZodNullable; webVideoUrl: z.ZodNullable; covers: z.ZodNullable>; hashtags: z.ZodNullable; }, "strip", z.ZodTypeAny, { name: string | null; }, { name: string | null; }>, "many">>; }, "strip", z.ZodTypeAny, { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }, { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }>, "many">; totalVideos: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; videos: { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }[]; totalVideos: number; }, { error: string; success: boolean; operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; videos: { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }[]; totalVideos: number; }>; type TikTokToolParams = z.output; type TikTokToolResult = z.output; type TikTokToolParamsInput = z.input; export declare class TikTokTool extends ToolBubble { static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>; profiles: z.ZodOptional>; hashtags: z.ZodOptional>; videoUrls: z.ZodOptional>; limit: z.ZodOptional>; shouldDownloadVideos: z.ZodOptional>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; credentials?: Partial> | undefined; limit?: number | undefined; hashtags?: string[] | undefined; profiles?: string[] | undefined; shouldDownloadVideos?: boolean | undefined; videoUrls?: string[] | undefined; }, { operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; credentials?: Partial> | undefined; limit?: number | undefined; hashtags?: string[] | undefined; profiles?: string[] | undefined; shouldDownloadVideos?: boolean | undefined; videoUrls?: string[] | undefined; }>; static readonly resultSchema: z.ZodObject<{ operation: z.ZodEnum<["scrapeProfile", "scrapeHashtag", "scrapeVideo"]>; videos: z.ZodArray; text: z.ZodNullable; createTime: z.ZodNullable; createTimeISO: z.ZodNullable; author: z.ZodNullable; uniqueId: z.ZodNullable; nickname: z.ZodNullable; avatarThumb: z.ZodNullable; signature: z.ZodNullable; verified: z.ZodNullable; followerCount: z.ZodNullable; followingCount: z.ZodNullable; videoCount: z.ZodNullable; heartCount: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; }, { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; }>>; stats: z.ZodNullable; shareCount: z.ZodNullable; commentCount: z.ZodNullable; playCount: z.ZodNullable; collectCount: z.ZodNullable; }, "strip", z.ZodTypeAny, { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; }, { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; }>>; videoUrl: z.ZodNullable; webVideoUrl: z.ZodNullable; covers: z.ZodNullable>; hashtags: z.ZodNullable; }, "strip", z.ZodTypeAny, { name: string | null; }, { name: string | null; }>, "many">>; }, "strip", z.ZodTypeAny, { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }, { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }>, "many">; totalVideos: z.ZodNumber; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; videos: { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }[]; totalVideos: number; }, { error: string; success: boolean; operation: "scrapeProfile" | "scrapeHashtag" | "scrapeVideo"; videos: { stats: { collectCount: number | null; commentCount: number | null; diggCount: number | null; playCount: number | null; shareCount: number | null; } | null; text: string | null; id: string | null; hashtags: { name: string | null; }[] | null; videoUrl: string | null; author: { id: string | null; uniqueId: string | null; verified: boolean | null; followerCount: number | null; signature: string | null; nickname: string | null; avatarThumb: string | null; followingCount: number | null; videoCount: number | null; heartCount: number | null; } | null; createTime: number | null; createTimeISO: string | null; webVideoUrl: string | null; covers: string[] | null; }[]; totalVideos: number; }>; static readonly shortDescription = "Scrape TikTok profiles, videos, and hashtags."; static readonly longDescription = "\n Universal TikTok scraping tool.\n \n Operations:\n - scrapeProfile: Get videos from user profiles\n - scrapeHashtag: Get videos by hashtag\n - scrapeVideo: Get details for specific videos\n \n Uses Apify's clockworks/tiktok-scraper.\n "; static readonly alias = "tiktok"; static readonly type = "tool"; constructor(params?: TikTokToolParamsInput, context?: BubbleContext); performAction(): Promise; private createErrorResult; private runScraper; private transformVideos; } export {}; //# sourceMappingURL=tiktok-tool.d.ts.map