15815213711
2024-08-26 67b8b6731811983447e053d4396b3708c14dfe3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
declare module "electron-osx-sign" {
  interface BaseSignOptions {
    app: string;
    identity?: string;
    platform?: string;
    keychain?: string;
  }
 
  interface SignOptions extends BaseSignOptions {
    binaries?: string[];
    entitlements?: string;
    'entitlements-inherit'?: string;
    'entitlements-loginhelper'?: string;
    'gatekeeper-assess'?: boolean;
    hardenedRuntime?: boolean;
    'identity-validation'?: boolean;
    ignore?: string | ((file: string) => boolean);
    'pre-auto-entitlements'?: boolean;
    'pre-embed-provisioning-profile'?: boolean;
    'provisioning-profile'?: string;
    'requirements'?: string;
    'signature-flags'?: string | ((file: string) => string[]);
    'signature-size'?: number;
    'type'?: string;
    version?: string;
    entitlementsForFile?: (file: string, codeSignArgs: string[]) => string | null;
  }
 
  export function sign(opts: SignOptions, callback: (error: Error) => void): void;
 
  export function signAsync(opts: SignOptions): Promise<any>;
 
  interface FlatOptions extends BaseSignOptions {
    'identity-validation'?: boolean;
    install?: string;
    pkg?: string;
    scripts?: string;
  }
 
  export function flat(opts: FlatOptions, callback: (error: Error) => void): void;
 
  export function flatAsync(opts: FlatOptions): Promise<any>;
}