import { I as IdPStores, a as IdPConfig } from './config-DM9VXfrR.cjs';
import * as h3 from 'h3';
import { EventHandler } from 'h3';
import * as _openape_core from '@openape/core';
import { ProblemDetails } from '@openape/core';
import * as _openape_auth from '@openape/auth';
import '@openape/grants';
declare function createChallengeHandler(stores: IdPStores, _config: IdPConfig): h3.EventHandler
>;
declare function createAuthenticateHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createEnrollHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createAuthorizeHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createTokenHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createJWKSHandler(stores: IdPStores): h3.EventHandler>;
declare function createDiscoveryHandler(config: IdPConfig): h3.EventHandler;
declare function createListGrantsHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>>;
declare function createCreateGrantHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createGetGrantHandler(stores: IdPStores): h3.EventHandler>;
declare function createApproveGrantHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createDenyGrantHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createRevokeGrantHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createGrantTokenHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createConsumeGrantHandler(stores: IdPStores): h3.EventHandler>;
interface BatchResult {
id: string;
status: string;
success: boolean;
error?: ProblemDetails;
}
declare function createBatchGrantHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createVerifyGrantHandler(stores: IdPStores, _config: IdPConfig): h3.EventHandler>;
declare function createListUsersHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createDeleteUserHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createCreateUserHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createAddSshKeyHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createListSshKeysHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createDeleteSshKeyHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createCreateDelegationHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createListDelegationsHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createRevokeDelegationHandler(stores: IdPStores, config: IdPConfig): h3.EventHandler>;
declare function createValidateDelegationHandler(stores: IdPStores, _config: IdPConfig): h3.EventHandler>;
/**
* POST /api/session/login
*
* Headless session login: accepts { id, challenge, signature },
* verifies the ed25519 signature, and sets a session cookie with { userId }.
*/
declare function createSessionLoginHandler(stores: IdPStores, config: IdPConfig): EventHandler>;
/**
* POST /api/session/logout
*
* Clears the IdP session cookie.
*/
declare function createSessionLogoutHandler(stores: IdPStores, config: IdPConfig): EventHandler>;
/**
* GET /login
*
* Returns the returnTo parameter as JSON.
* In a real app this would render a login form;
* for headless/test usage it signals that login is required.
*/
declare function createLoginPageHandler(): EventHandler;
export { IdPConfig, IdPStores, createAddSshKeyHandler, createApproveGrantHandler, createAuthenticateHandler, createAuthorizeHandler, createBatchGrantHandler, createChallengeHandler, createConsumeGrantHandler, createCreateDelegationHandler, createCreateGrantHandler, createCreateUserHandler, createDeleteSshKeyHandler, createDeleteUserHandler, createDenyGrantHandler, createDiscoveryHandler, createEnrollHandler, createGetGrantHandler, createGrantTokenHandler, createJWKSHandler, createListDelegationsHandler, createListGrantsHandler, createListSshKeysHandler, createListUsersHandler, createLoginPageHandler, createRevokeDelegationHandler, createRevokeGrantHandler, createSessionLoginHandler, createSessionLogoutHandler, createTokenHandler, createValidateDelegationHandler, createVerifyGrantHandler };