import { Trail } from "../trails"; import { Mountain } from "../mountains"; /** * Basic Trail array, with 'where' and 'first' methods to help with managing the returned trails. */ declare class Trails extends Array { /** * Compares every trail and returns every one that matches the given parameters * @param value Property to compare on each trail * @param match Value to compare with */ where(value: string, match: unknown): Trails; /** * Returns the first matching trail with the given parameters * @param value Property to compare on each trail * @param match Value to compare with * @param secondValue Property to compare on each trail * @param secondMatch Value to compare with */ first(value: string, match: unknown, secondValue?: string, secondMatch?: unknown): { /** * Sets the given property and value on the returned trail, or creates a new trail and does the same thing * @param args Arguments to create trail with, if it appears to not exist * @param key Property to set on the trail * @param value Value to set on the given property */ set(args: [Mountain, string], key?: "path" | "mountain" | "property" | "on" | "kerns" | "spurs" | "params" | "method" | "callback" | "addListener" | "once" | "removeListener" | "off" | "removeAllListeners" | "setMaxListeners" | "getMaxListeners" | "listeners" | "rawListeners" | "emit" | "listenerCount" | "prependListener" | "prependOnceListener" | "eventNames" | undefined, value?: unknown): Trail; /** * Returns either the matching trail or undefined */ get: () => Trail; }; } export declare const trails: Trails; export {};