@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
7 lines (6 loc) • 1.34 kB
TypeScript
import { type SpanMatch, type SpanMatcherFn } from './matchSpan';
import type { LabelMatchingFnsRecord, LabelMatchingInputRecord } from './types';
import type { ArrayWithAtLeastOneElement } from './typeUtils';
export declare function ensureMatcherFn<const SelectedRelationNameT extends keyof RelationSchemasT, const RelationSchemasT, const VariantsT extends string, const MatcherInputT extends SpanMatch<SelectedRelationNameT, RelationSchemasT, VariantsT> = SpanMatch<SelectedRelationNameT, RelationSchemasT, VariantsT>>(matcherFnOrDefinition: MatcherInputT): SpanMatcherFn<SelectedRelationNameT, RelationSchemasT, VariantsT>;
export declare function convertMatchersToFns<const SelectedRelationNameT extends keyof RelationSchemasT, const RelationSchemasT, const VariantsT extends string>(matchers: readonly SpanMatch<SelectedRelationNameT, RelationSchemasT, VariantsT>[] | undefined): ArrayWithAtLeastOneElement<SpanMatcherFn<SelectedRelationNameT, RelationSchemasT, VariantsT>> | undefined;
export declare function convertLabelMatchersToFns<const SelectedRelationNameT extends keyof RelationSchemasT, const RelationSchemasT, const VariantsT extends string>(definitionLabelMatchers: LabelMatchingInputRecord<SelectedRelationNameT, RelationSchemasT, VariantsT>): LabelMatchingFnsRecord<SelectedRelationNameT, RelationSchemasT, VariantsT>;