/** * Hook to interact with Permit API for OpenAPI spec processing */ export declare const useOpenapiApi: () => { listResources: () => Promise, "application/json">, "error"> & { error: string | null; }>; createResource: (resourceKey: string, resourceName: string) => Promise, "application/json">, "error"> & { error: string | null; }>; updateResource: (resourceKey: string, resourceName: string) => Promise, "application/json">, "error"> & { error: string | null; }>; createAction: (resourceKey: string, actionKey: string, actionName: string) => Promise, "application/json">, "error"> & { error: string | null; }>; listRoles: () => Promise, "application/json">, "error"> & { error: string | null; }>; getRole: (roleKey: string) => Promise, "application/json">, "error"> & { error: string | null; }>; createRole: (roleKey: string, roleName: string) => Promise, "application/json">, "error"> & { error: string | null; }>; updateRole: (roleKey: string, roleName: string, permissions?: string[]) => Promise, "application/json">, "error"> & { error: string | null; }>; createResourceRole: (resourceKey: string, roleKey: string, roleName: string, permissionString: string | string[]) => Promise, "application/json">, "error"> & { error: string | null; }>; updateResourceRole: (resourceKey: string, roleKey: string, permissionString: string | string[]) => Promise, "application/json">, "error"> & { error: string | null; }>; getRelationByKey: (subjectResourceKey: string, relationKey: string) => Promise>; createRelation: (relationInput: Partial) => Promise>; createDerivedRole: (derivedRoleInput: Partial) => Promise>; deleteUrlMappings: (proxyConfigKey: string) => Promise>; createUrlMappings: (mappings: { url: string; url_type?: "regex"; http_method: import("../../lib/api/v1.js").components["schemas"]["Methods"]; resource: string; headers: { [key: string]: string; }; action?: string; priority?: number; }[], authMechanism: string, secret: string | Record) => Promise | Record | Record; name: string; mapping_rules: import("../../lib/api/v1.js").components["schemas"]["MappingRule"][]; auth_mechanism: import("../../lib/api/v1.js").components["schemas"]["AuthMechanism"]; }>>; };