import { z } from 'zod'; import type { BytesSizes } from '../../../../../../utils/bytesParsers'; import type { ManagePartitioningFormState } from './types'; export declare function splitToPartitionSizeMb(splitSize: number, splitUnit: BytesSizes): { bytes: number; partitionSizeMb: number; }; export declare function getManagePartitioningInitialValues(initialData?: Partial): ManagePartitioningFormState; export declare function getMaxSplitSizeBytes(config?: Record): number; /** * Returns the maximum split size in GB for display in the hint. * * The value is floored (not rounded) to {@link MAX_SPLIT_SIZE_GB_PRECISION} * decimals so that converting it back to bytes never exceeds * `maxSplitSizeBytes`. This keeps the displayed maximum consistent with the * exact byte limit used by validation: e.g. for a 2.5 GiB limit * (2 684 354 560 bytes ≈ 2.684 GB) the hint shows `2.6`, which passes * validation, instead of the rounded `3` that the validator rejects. */ export declare function getMaxSplitSizeGb(maxSplitSizeBytes: number): string; export declare const splitUnitSchema: z.ZodCustom<"b" | "kb" | "mb" | "gb" | "tb" | "pb", "b" | "kb" | "mb" | "gb" | "tb" | "pb">; export declare const managePartitioningSchema: (maxSplitSizeBytes?: number) => z.ZodDiscriminatedUnion<[z.ZodObject<{ splitSizeEnabled: z.ZodLiteral; splitSize: z.ZodPipe>; splitUnit: z.ZodCustom<"b" | "kb" | "mb" | "gb" | "tb" | "pb", "b" | "kb" | "mb" | "gb" | "tb" | "pb">; loadEnabled: z.ZodBoolean; minimum: z.ZodPipe>; maximum: z.ZodPipe>; }, z.core.$strip>, z.ZodObject<{ splitSizeEnabled: z.ZodLiteral; splitSize: z.ZodPipe>; splitUnit: z.ZodCustom<"b" | "kb" | "mb" | "gb" | "tb" | "pb", "b" | "kb" | "mb" | "gb" | "tb" | "pb">; loadEnabled: z.ZodBoolean; minimum: z.ZodPipe>; maximum: z.ZodPipe>; }, z.core.$strip>], "splitSizeEnabled">;