export default function validate(mapping: unknown, stack?: string[]): void | null;