import { Context } from "hono";
import { Bindings, Variables } from "../types";
import { LoginSession, User } from "@authhero/adapter-interfaces";
export declare function isPageHook(hook: any): hook is {
    page_id: string;
    enabled: boolean;
    permission_required?: string;
};
/**
 * Handles a page hook: checks if user has required permission and returns a redirect Response to the page.
 * If user doesn't have the required permission, returns the user without redirect.
 */
export declare function handlePageHook(ctx: Context<{
    Bindings: Bindings;
    Variables: Variables;
}>, page_id: string, loginSession: LoginSession, user: User, permission_required?: string): Promise<User | Response>;
