import type { ChildrenCallback, Route, RouteContext } from './types.t.js'; /** * {@inheritDoc "".NotFoundError} */ export declare const notFoundResult: unique symbol; /** * A special result to be returned from a route action to indicate that the * route was not found. */ export type NotFoundResult = typeof notFoundResult; /** * An error to be thrown when a route is not found. */ export declare class NotFoundError extends Error { /** * The HTTP status code to be used when the route is not found. */ readonly code: number; /** * The context object associated with the route that was not found. */ readonly context: RouteContext; constructor(context: RouteContext); } /** @internal */ export declare function isObject(o: unknown): o is object; /** @internal */ export declare function isFunction unknown>(f: unknown): f is F; /** @internal */ export declare function isString(s: unknown): s is string; /** @internal */ export declare function toArray(value?: T | readonly T[]): readonly T[]; /** @internal */ export declare function log(msg: string): string; /** @internal */ export declare function getNotFoundError(context: RouteContext): NotFoundError; /** @internal */ export declare function resolvePath(path?: string | readonly string[]): string; /** @internal */ export declare function getRoutePath(route: Route | undefined): string; /** @internal */ export declare function unwrapChildren(children: ChildrenCallback | ReadonlyArray> | undefined): ReadonlyArray> | undefined; //# sourceMappingURL=utils.d.ts.map