import type { AllowNullish, AllowNullishReturn, Nullish, WithOptionalFind, WithUnit } from '../common/private-types'; import type { DeclarativeFindUnit } from '../common/types'; export type ParseUnitOption = AllowNullish; export type InputMatchResults = [value: string, wholeUnit: string]; export type MatchFunction = (input: string) => AllowNullishReturn; export type RegExpPattern = RegExp | string; export type ParseMatchOption = AllowNullish; export type ParseMultiplier = number; export type ParseFindMultiplierFunction = (prefix: string, unit: U) => AllowNullishReturn; export type ParseFindMultiplierOption = AllowNullish>; interface CreateParserOptionsBase extends WithOptionalFind> { readonly match?: ParseMatchOption; } export interface CreateParserOptionsWithoutUnit extends Partial>, CreateParserOptionsBase { } export interface CreateParserOptionsWithUnit extends WithUnit, CreateParserOptionsBase { } export type CreateParserOptions = Partial>; export type ParseInput = unknown; export type Parser = (input: ParseInput) => number; export {}; //# sourceMappingURL=types.d.ts.map