import type { UrlParser, ViewPaths } from "../client/types";
type Options<T extends ViewPaths> = UrlParser<T> extends Record<string, never> ? {
    search?: Record<string, string | number | boolean | undefined | null>;
    status?: number;
    permanent?: boolean;
} : {
    search?: Record<string, string | number | boolean | undefined | null>;
    params: UrlParser<T>;
    status?: number;
    permanent?: boolean;
};
export declare class Redirect {
    static to<T extends ViewPaths>(path: T, ...args: UrlParser<T> extends Record<string, never> ? [options?: Options<T>] : [options: Options<T>]): void;
    static external(url: string, status?: number): void;
}
export {};
//# sourceMappingURL=Redirect.d.ts.map