/**
 * Regular expression for validating partial ISO-8601 duration strings during input.
 * Allows incomplete durations that are still being typed (e.g., `P1`, `P1DT`).
 */
export declare const DURATION_PARTIAL_RE: RegExp;
/**
 * Regular expression for validating complete ISO-8601 duration strings.
 * Matches fully formed durations like `P1Y2M3DT4H5M6S`.
 */
export declare const DURATION_FULL_RE: RegExp;
/**
 * Creates a mask configuration object for ISO-8601 duration inputs.
 *
 * The configuration allows only valid duration characters (digits and P, T, W, D, H, M, S),
 * auto-uppercases input, rejects invalid partial patterns, and uses a custom completion
 * check that validates via the provided parse function.
 *
 * @param parse - A function that parses a duration string (e.g., `Temporal.Duration.from`).
 * @returns A mask configuration object suitable for use with {@link MaskInput}.
 *
 * @example
 * ```ts
 * const config = durationMaskConfig(Temporal.Duration.from)
 * MaskInput({ ...options, ...config })
 * ```
 */
export declare function durationMaskConfig(parse: (s: string) => unknown): {
    mask: null;
    allowMode: "custom";
    allow: (c: string) => boolean;
    pipe: (conformed: string) => string | false;
    completion: {
        mode: "custom";
        isComplete: (conformed: string) => boolean;
    };
};
