import type { Context, Next } from "hono"; /** * Require specific scope middleware * Checks if the integration key has the required scope */ export declare const requireScope: (requiredScope: string) => (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; required_scope: string; available_scopes: string[]; }; }, 403, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 500, "json">) | undefined>; /** * Require any of the specified scopes */ export declare const requireAnyScope: (...requiredScopes: string[]) => (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; required_scopes: string[]; available_scopes: string[]; }; }, 403, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 500, "json">) | undefined>; /** * Require all of the specified scopes */ export declare const requireAllScopes: (...requiredScopes: string[]) => (c: Context, next: Next) => Promise<(Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; required_scopes: string[]; available_scopes: string[]; }; }, 403, "json">) | (Response & import("hono").TypedResponse<{ success: false; error: { code: string; message: string; }; }, 500, "json">) | undefined>; export default requireScope; //# sourceMappingURL=scope-check.d.ts.map