import { type Signal } from '@angular/core'; import { DefaultValueOptions, InjectorOptions, ParseOptions } from 'ngxtension/shared'; /** * The `InjectRouteFragmentOptions` type defines options for configuring the behavior of the `injectRouteFragment` function. * * @template T - The expected type of the read value. */ export type InjectRouteFragmentOptions = ParseOptions & InjectorOptions & DefaultValueOptions & { /** * A transformation function to convert the written value to the expected read value. * * @deprecated Use `parse` as a replacement. * @param v - The value to transform. * @returns The transformed value. */ transform?: (v: string | null) => T; }; /** * The `injectRouteFragment` function allows you to access and transform url fragment from the current route. * * @returns {Signal} A `Signal` that emits the route fragment. */ export declare function injectRouteFragment(): Signal; /** * The `injectRouteFragment` function allows you to access and transform url fragment from the current route. * * @param {InjectRouteFragmentOptions} options - inject options like transform fn. * @returns {Signal} A `Signal` that emits the transformed value of url fragment. */ export declare function injectRouteFragment(options: InjectRouteFragmentOptions): Signal;