UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

47 lines • 1.85 kB
import { formatDateMySQL } from "./date"; export declare namespace formatting { const date: (...args: [] | [import("moment").MomentInput] | [import("moment").MomentInput, { format?: string; } & ({ offsetMinutes?: number; withGMTOffset?: never; } | { offsetMinutes?: never; withGMTOffset?: boolean; })] | [{ format?: string; } & ({ offsetMinutes?: number; withGMTOffset?: never; } | { offsetMinutes?: never; withGMTOffset?: boolean; })]) => string; const dateMySQL: typeof formatDateMySQL; /** * Parse a full name into first and last names. * * @param fullName - The full name to parse * @returns An object containing the first and last names */ const parseName: (fullName: string) => { firstName: string; lastName: string; }; const trimMarkupComments: (rawMarkup: string) => string; const specialcharsDecode: (text: string, quoteStyle?: number | string) => string; const slash: (value: any) => any; const mapDeep: <V = any>(value: V, callback: (value: any) => any) => V; const stripslashesDeep: <V = any>(value: V) => V; const stripslashesFromStringsOnly: <V = any>(value: V) => V; const unslash: <V = any>(value: V) => V; const untrailingslashit: (value: string) => string; const removeAccents: (input: string) => string; const slug: (v: string) => string; const key: (key: string | number) => string; const username: (username: string, strict?: boolean) => string; const stripTags: (value: string) => string; const normalizeWhitespace: (str: string) => string; const primitive: (value: any) => string | number | boolean | object | null | bigint | symbol | Function | undefined; } //# sourceMappingURL=formatting.d.ts.map