///
///
import React$1 from 'react';
import { FieldInputProps, FormikProps } from 'formik';
import { SelectChangeEvent, SxProps, Theme } from '@mui/material';
import { ParsedUrlQuery } from 'querystring';
type UseUiHidableProps = {
key: string;
defaultValue?: boolean;
};
declare const useUIHidable: (props: UseUiHidableProps) => {
hide: () => any;
show: () => any;
toggle: () => any;
visible: boolean;
};
type ClientOnlyProps = {
children: React$1.ReactNode;
};
declare const ClientOnly: React$1.FC;
declare function useLocalStorage(key: string, defaultValue: ValueType): any[];
type CustomSetProps = {
onChange: ({ value, event, }: {
value: T;
event?: React.ChangeEvent | SelectChangeEvent;
}) => void;
onTouched?: (value?: boolean) => void;
};
type AdvancedFieldProps = FieldInputProps & {
helperText?: any;
error?: boolean;
};
type CustomFieldProps = Omit, 'onChange'> & CustomSetProps;
declare class FormikHelper {
formik: FormikProps;
constructor(formik: FormikProps);
HasErrorTouched(field: string): boolean;
GetFieldPropsCustom(field: string): CustomFieldProps;
GetFieldPropsCustomSet(field: string): CustomSetProps;
GetFieldPropsAdvanced(field: string): AdvancedFieldProps;
GetHelperText(field: string): Pick;
}
declare const useFormikHelper: (formik: FormikProps) => FormikHelper;
declare class AnchorScroller {
/**
*
*/
private _url?;
private _anchorPosition;
constructor();
scrollToAnchorIfExists(): void;
getAnchorElementId(): string | null;
private getAnchorPosition;
}
type UseAnchorScrollProps = {
timeoutMs?: number;
};
declare const useAnchorScroll: (props?: UseAnchorScrollProps | undefined) => void;
type QueryParamType = 'string' | 'string?' | 'string[]' | 'number' | 'number?' | 'number[]';
type ReturnValueEntry = TInQueryParamType extends 'number' ? number : TInQueryParamType extends 'number?' ? number | undefined : TInQueryParamType extends 'number[]' ? number[] : TInQueryParamType extends 'string' ? string : TInQueryParamType extends 'string?' ? string | undefined : TInQueryParamType extends 'string[]' ? string | undefined : unknown;
type QueryType = ParsedUrlQuery[0];
type ReturnValue, TNullable extends boolean = false> = {
[TKey in keyof TQueryParamsObject]: TNullable extends true ? undefined | ReturnValueEntry : ReturnValueEntry;
};
type UseQueryParametersProps, TNullable extends boolean> = {
params: TQueryParamsObject;
options?: {
allowNullable: TNullable;
onError?: (error: Error) => void;
};
};
declare class QueryParamsValidator {
private query;
/**
*
*/
constructor(query: ParsedUrlQuery);
reduceValues, TNullable extends boolean>({ params, }: UseQueryParametersProps): ReturnValue & {
errors: string[];
};
}
declare const useQueryParams: , TNullable extends boolean = false>({ params, options, query }: UseQueryParametersProps & {
query: ParsedUrlQuery;
}) => ReturnValue & {
errors: string[];
};
declare const parseNumberNullable: (value?: string) => number | undefined;
type SeoTagsType = {
meta?: {
title?: string | null;
description?: string | null;
keywords?: string | null;
};
og?: {
title?: string | null;
image?: string | null;
url?: string | null;
type?: string | null;
description?: string | null;
};
twitter?: {
card?: string | null;
domain?: string | null;
url?: string | null;
title?: string | null;
description?: string | null;
image?: string | null;
};
};
type SeoTagsProps = {
meta?: SeoTagsType['meta'];
og?: SeoTagsType['og'];
twitter?: SeoTagsType['twitter'];
};
type CommonSiteSeoTags = {
title: string;
description: string;
keywords: string;
ogImage: string;
ogType: string;
ogUrl: string;
domain: string;
};
declare const getCommonSeoTags: (meta: CommonSiteSeoTags) => SeoTagsProps;
declare const SeoTagsCommon: React$1.FC<{
meta: CommonSiteSeoTags;
}>;
declare const SeoTags: React$1.FC;
type ComponentStyles = {
[key: string]: SxProps;
};
type PartialRecord = {
[P in K]?: T;
};
type RequiredNotNull = {
[P in keyof T]: NonNullable;
};
type Ensure = T & RequiredNotNull>;
export { AdvancedFieldProps, AnchorScroller, ClientOnly, CommonSiteSeoTags, ComponentStyles, CustomFieldProps, CustomSetProps, Ensure, FormikHelper, PartialRecord, QueryParamType, QueryParamsValidator, QueryType, RequiredNotNull, ReturnValue, ReturnValueEntry, SeoTags, SeoTagsCommon, SeoTagsProps, SeoTagsType, UseQueryParametersProps, getCommonSeoTags, parseNumberNullable, useAnchorScroll, useFormikHelper, useLocalStorage, useQueryParams, useUIHidable };