import type { RepositoryAffiliation } from "../graphql/generated/common.js"; /** * Returns boolean if value is either "true" or "false" else the value as it is. * * @param value The value to parse; `undefined` when the param was not sent. * @returns The parsed value. */ declare const parseBoolean: (value: string | boolean | undefined) => boolean | undefined; /** * Parse string to array of strings. * * @param str The string to parse. * @returns The array of strings. */ declare const parseArray: (str: string) => Array; /** * Clamp the given number between the given range. * * @param number The number to clamp. * @param min The minimum value. * @param max The maximum value. * @returns The clamped number. */ declare const clampValue: (number: string | number, min: number, max: number) => number; /** * Lowercase and trim string. * * @param name String to lowercase and trim. * @returns Lowercased and trimmed string. */ declare const lowercaseTrim: (name: string) => string; /** * Split array of languages in two columns. * * @template T Language object. * @param arr Array of languages. * @param perChunk Number of languages per column. * @returns Array of languages split in two columns. */ declare const chunkArray: (arr: Array, perChunk: number) => Array>; /** * Parse emoji from string. * * @param str String to parse emoji from. * @returns String with emoji parsed. */ declare const parseEmojis: (str: string) => string; /** * Parse owner affiliations. * * @param affiliations input affiliations to be parsed. * @returns Parsed affiliations. * * @throws {CustomError} If affiliations contains invalid values. */ declare const parseOwnerAffiliations: (affiliations: Array) => Array; declare const buildSearchFilter: (repos?: Array | string, owners?: Array | string) => string; export { parseBoolean, parseArray, clampValue, lowercaseTrim, chunkArray, parseEmojis, parseOwnerAffiliations, buildSearchFilter, }; //# sourceMappingURL=ops.d.ts.map