import type { SensitiveInfoOptions } from '../sensitive-info.nitro'; /** Maximum byte length accepted for an entry key. */ export declare const MAX_KEY_BYTES = 1024; /** Maximum byte length accepted for a service name. */ export declare const MAX_SERVICE_BYTES = 1024; /** Maximum byte length accepted for a stored value (UTF-8 encoded). Default: 1 MiB. */ export declare const MAX_VALUE_BYTES: number; /** * Validates a non-empty entry key. * * @internal * @throws {@link InvalidArgumentError} when the key is empty, whitespace-only, or exceeds {@link MAX_KEY_BYTES}. */ export declare function validateKey(key: unknown): asserts key is string; /** * Validates the optional `service` field on user-supplied options. Undefined is allowed because * `normalizeOptions` will substitute the default; an explicit empty string is rejected. * * @internal */ export declare function validateService(options?: SensitiveInfoOptions): void; /** * Validates the value payload of a `setItem` call. * * @internal * @throws {@link InvalidArgumentError} when the value is not a string or its UTF-8 encoding exceeds {@link MAX_VALUE_BYTES}. */ export declare function validateValue(value: unknown): asserts value is string; //# sourceMappingURL=validate.d.ts.map