UNPKG

kequapp

Version:

DEPRECATED: renamed to @kequtech/arbor

10 lines (9 loc) 706 B
import type { Params, Pathname } from '../../types.ts'; export declare function extractMethod(params: unknown[], method?: string): string; export declare function extractUrl(params: unknown[], url?: Pathname): Pathname; export declare function extractContentType(params: unknown[], contentType?: string): string | undefined; export declare function extractActions<T>(params: unknown[]): T[]; export declare function extractOptions<T>(params: unknown[], defaultOptions?: Partial<T>): T; export declare function getParts(pathname?: string): string[]; export declare function getParams(clientParts: string[], parts: string[]): Params; export declare function matchGroups(url: string, regexp: RegExp): Params;