UNPKG

@surface/core

Version:

Provides core functionality of many @surfaces modules.

14 lines (13 loc) 921 B
import type { Indexer } from "../types/index.js"; export declare function camelToText(value: string): string; export declare function camelToDashed(value: string): string; export declare function capitalize(value: string): string; export declare function capture(source: string, start: RegExp, end: RegExp): [string, string, string]; export declare function captureAll(source: string, start: RegExp, end: RegExp): [string, string, string][]; export declare function dashedToCamel(value: string): string; export declare function dashedToTitle(value: string): string; export declare function format(pattern: string, source: Indexer): string; export declare function joinPaths(...paths: string[]): string; export declare function queryfy(source: object): string; export declare function toTitle(value: string): string; export declare function enumeratePropertyPath(source: object): Iterable<[string, unknown]>;