import { type SafeAppPath } from '@riverbankcms/path-utils';
type RedirectOptions = {
    defaultRedirectPath?: string;
    redirectPath?: string;
};
type ResolveRedirectPathOptions = {
    options: RedirectOptions;
    defaultValue: string;
    warn: (message: string) => void;
    nodeEnv: string | undefined;
};
type ResolveLogoutRedirectParams = {
    defaultRedirect: SafeAppPath;
    formRedirect: FormDataEntryValue | null | undefined;
    queryRedirect: string | null;
};
export declare function resolveRedirectPathOption({ options, defaultValue, warn, nodeEnv, }: ResolveRedirectPathOptions): string;
export declare function resolveDefaultRedirect(options: RedirectOptions, defaultValue: string, warn?: (message: string) => void, nodeEnv?: string | undefined): SafeAppPath;
export declare function resolveCallbackRedirect(redirectTo: string | null, defaultRedirect: SafeAppPath): SafeAppPath;
export declare function resolveLogoutRedirect({ defaultRedirect, formRedirect, queryRedirect, }: ResolveLogoutRedirectParams): SafeAppPath;
export {};
