import { z } from "zod";

//#region src/utils/slug-validation.d.ts

/**
 * Helper to check if a string is a numeric ID.
 */
declare function isNumericId(value: string): boolean;
/**
 * Validates a slug to prevent path traversal and injection attacks.
 * Designed to be used with Zod's superRefine() method.
 *
 * @example
 * ```typescript
 * const OrganizationSlug = z.string()
 *   .toLowerCase()
 *   .trim()
 *   .superRefine(validateSlug)
 *   .describe("Organization slug");
 *
 * const TeamSlug = z.string()
 *   .toLowerCase()
 *   .trim()
 *   .superRefine(validateSlug)
 *   .describe("Team slug");
 * ```
 */
declare function validateSlug(val: string, ctx: z.RefinementCtx): void;
/**
 * Validates a parameter that can be either a slug or numeric ID.
 * Designed to be used with Zod's superRefine() method.
 *
 * @example
 * ```typescript
 * const ProjectSlugOrId = z.string()
 *   .toLowerCase()
 *   .trim()
 *   .superRefine(validateSlugOrId)
 *   .describe("Project slug or numeric ID");
 *
 * const IssueSlugOrId = z.string()
 *   .trim()
 *   .superRefine(validateSlugOrId)
 *   .describe("Issue slug or numeric ID");
 * ```
 */
declare function validateSlugOrId(val: string, ctx: z.RefinementCtx): void;
//# sourceMappingURL=slug-validation.d.ts.map
//#endregion
export { isNumericId, validateSlug, validateSlugOrId };
//# sourceMappingURL=slug-validation.d.ts.map