import { z } from 'zod'; /** * Bitbucket search tool arguments schema base */ export declare const SearchToolArgsBase: z.ZodObject<{ /** * Workspace slug to search in. Example: "myteam" * This maps to the CLI's "--workspace" parameter. */ workspaceSlug: z.ZodOptional; /** * Optional: Repository slug to limit search scope. Required for `pullrequests` scope. Example: "project-api" * This maps to the CLI's "--repo" parameter. */ repoSlug: z.ZodOptional; /** * Search query text. Required. Will match against content based on the selected search scope. * This maps to the CLI's "--query" parameter. */ query: z.ZodString; /** * Search scope: "code", "content", "repositories", "pullrequests". Default: "code" * This maps to the CLI's "--type" parameter. */ scope: z.ZodDefault>>; /** * Content type for content search (e.g., "wiki", "issue") * This maps to the CLI's "--content-type" parameter. */ contentType: z.ZodOptional; /** * Filter code search by language. * This maps to the CLI's "--language" parameter. */ language: z.ZodOptional; /** * Filter code search by file extension. * This maps to the CLI's "--extension" parameter. */ extension: z.ZodOptional; } & { /** * Maximum number of items to return (1-100). * Use this to control the response size. * Useful for pagination or when you only need a few results. */ limit: z.ZodOptional; /** * Pagination cursor for retrieving the next set of results. * For repositories and pull requests, this is a cursor string. * For code search, this is a page number. * Use this to navigate through large result sets. */ cursor: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; scope: "code" | "repositories" | "content" | "pullrequests"; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; }, { query: string; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; scope?: "code" | "repositories" | "content" | "pullrequests" | undefined; }>; /** * Bitbucket search tool arguments schema with validation */ export declare const SearchToolArgs: z.ZodEffects; /** * Optional: Repository slug to limit search scope. Required for `pullrequests` scope. Example: "project-api" * This maps to the CLI's "--repo" parameter. */ repoSlug: z.ZodOptional; /** * Search query text. Required. Will match against content based on the selected search scope. * This maps to the CLI's "--query" parameter. */ query: z.ZodString; /** * Search scope: "code", "content", "repositories", "pullrequests". Default: "code" * This maps to the CLI's "--type" parameter. */ scope: z.ZodDefault>>; /** * Content type for content search (e.g., "wiki", "issue") * This maps to the CLI's "--content-type" parameter. */ contentType: z.ZodOptional; /** * Filter code search by language. * This maps to the CLI's "--language" parameter. */ language: z.ZodOptional; /** * Filter code search by file extension. * This maps to the CLI's "--extension" parameter. */ extension: z.ZodOptional; } & { /** * Maximum number of items to return (1-100). * Use this to control the response size. * Useful for pagination or when you only need a few results. */ limit: z.ZodOptional; /** * Pagination cursor for retrieving the next set of results. * For repositories and pull requests, this is a cursor string. * For code search, this is a page number. * Use this to navigate through large result sets. */ cursor: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; scope: "code" | "repositories" | "content" | "pullrequests"; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; }, { query: string; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; scope?: "code" | "repositories" | "content" | "pullrequests" | undefined; }>, { query: string; scope: "code" | "repositories" | "content" | "pullrequests"; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; }, { query: string; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; scope?: "code" | "repositories" | "content" | "pullrequests" | undefined; }>; export declare const SearchToolArgsSchema: z.ZodObject<{ /** * Workspace slug to search in. Example: "myteam" * This maps to the CLI's "--workspace" parameter. */ workspaceSlug: z.ZodOptional; /** * Optional: Repository slug to limit search scope. Required for `pullrequests` scope. Example: "project-api" * This maps to the CLI's "--repo" parameter. */ repoSlug: z.ZodOptional; /** * Search query text. Required. Will match against content based on the selected search scope. * This maps to the CLI's "--query" parameter. */ query: z.ZodString; /** * Search scope: "code", "content", "repositories", "pullrequests". Default: "code" * This maps to the CLI's "--type" parameter. */ scope: z.ZodDefault>>; /** * Content type for content search (e.g., "wiki", "issue") * This maps to the CLI's "--content-type" parameter. */ contentType: z.ZodOptional; /** * Filter code search by language. * This maps to the CLI's "--language" parameter. */ language: z.ZodOptional; /** * Filter code search by file extension. * This maps to the CLI's "--extension" parameter. */ extension: z.ZodOptional; } & { /** * Maximum number of items to return (1-100). * Use this to control the response size. * Useful for pagination or when you only need a few results. */ limit: z.ZodOptional; /** * Pagination cursor for retrieving the next set of results. * For repositories and pull requests, this is a cursor string. * For code search, this is a page number. * Use this to navigate through large result sets. */ cursor: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; scope: "code" | "repositories" | "content" | "pullrequests"; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; }, { query: string; cursor?: string | undefined; limit?: number | undefined; workspaceSlug?: string | undefined; language?: string | undefined; repoSlug?: string | undefined; contentType?: string | undefined; extension?: string | undefined; scope?: "code" | "repositories" | "content" | "pullrequests" | undefined; }>; export type SearchToolArgsType = z.infer;