import type { BasePolicy } from '../base_policy.ts'; /** * Define bouncer action metadata on a policy class method. * This decorator allows configuring how policy methods behave, * particularly regarding guest access. * * @param options Configuration options for the policy action * * @example * ```js * class PostPolicy extends BasePolicy { * @action({ allowGuest: true }) * view(user, post) { * return post.isPublished * } * } * ``` */ export declare function action(options: { allowGuest: boolean; }): (target: BasePolicy, property: string) => void; /** * Allow guests on a policy action. This is a convenience decorator * that applies the action decorator with allowGuest set to true. * * @example * ```js * class PostPolicy extends BasePolicy { * @allowGuest() * view(user, post) { * return post.isPublished * } * } * ``` */ export declare function allowGuest(): (target: BasePolicy, property: string) => void;